Skip to content

Commit 13e6338

Browse files
committed
Update TestClientWriter.java
1 parent 030324e commit 13e6338

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

http-generator-core/src/main/java/io/avaje/http/generator/core/TestClientWriter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ private void writeAddRoutes() {
106106
}
107107

108108
private void writeRoute(MethodReader method) {
109+
110+
// TODO handle Contexts later
111+
if (method.params().stream().anyMatch(p -> p.paramType() == ParamType.CONTEXT)) {
112+
return;
113+
}
114+
109115
TypeMirror returnType = method.returnType();
110116
var isJstache = ProcessingContext.isJstacheTemplate(returnType);
111117
writer.append(" ");

0 commit comments

Comments
 (0)