File tree Expand file tree Collapse file tree
test/java/com/vertispan/grpc/fetch Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<module >
2+ <inherits name =" elemental2.dom.Dom" />
23 <inherits name =" io.grpc.Grpc" />
34 <source path =" " />
45</module >
Original file line number Diff line number Diff line change 1+ package com .vertispan .grpc .fetch ;
2+
3+ import com .google .gwt .junit .client .GWTTestCase ;
4+ import elemental2 .dom .URL ;
5+
6+ public class FetchCompileTest extends GWTTestCase {
7+ @ Override
8+ public String getModuleName () {
9+ return "com.vertispan.grpc.fetch.Fetch" ;
10+ }
11+
12+ public void testCompile () {
13+ // Don't actually use the channel at this time, just make sure it
14+ // compiles, with other bits of gRPC along with it
15+ FetchChannel channel = new FetchChannel (new URL ("https://localhost:8080" ));
16+ assertEquals ("localhost:8080" , channel .authority ());
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ package com .vertispan .grpc .fetch ;
2+
3+ import com .google .gwt .core .shared .GwtIncompatible ;
4+ import com .google .gwt .junit .tools .GWTTestSuite ;
5+
6+ @ GwtIncompatible
7+ public class FetchSuite {
8+ public static GWTTestSuite suite () {
9+ GWTTestSuite suite = new GWTTestSuite ("gRPC Fetch Emulation Tests" );
10+
11+ suite .addTestSuite (FetchCompileTest .class );
12+
13+ return suite ;
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments