Skip to content

Commit

Permalink
fix test breakage in ipc after changes to SpecificCompiler
Browse files Browse the repository at this point in the history
Signed-off-by: radai-rosenblatt <radai.rosenblatt@gmail.com>
  • Loading branch information
radai-rosenblatt committed Sep 5, 2016
1 parent 50982a7 commit 65d1372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ OutputFile compileInterface(Protocol protocol) {
return outputFile;
}

private String makePath(String name, String space) {
//package private for testing purposes
String makePath(String name, String space) {
if (space == null || space.isEmpty()) {
return name + suffix;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ public void testEsc() {

@Test
public void testMakePath() {
assertEquals("foo/bar/Baz.java".replace("/", File.separator), SpecificCompiler.makePath("Baz", "foo.bar"));
assertEquals("baz.java", SpecificCompiler.makePath("baz", ""));
SpecificCompiler compiler = new SpecificCompiler();
assertEquals("foo/bar/Baz.java".replace("/", File.separator), compiler.makePath("Baz", "foo.bar"));
assertEquals("baz.java", compiler.makePath("baz", ""));
}

@Test
Expand Down

0 comments on commit 65d1372

Please sign in to comment.