Skip to content

Commit 14430c3

Browse files
committed
Fix the module, add an extremely basic compile test
1 parent f412b8f commit 14430c3

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<module>
2+
<inherits name="elemental2.dom.Dom" />
23
<inherits name="io.grpc.Grpc" />
34
<source path="" />
45
</module>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)