From fe36b34a8044a0ff3418a608ca104dace8f42c6f Mon Sep 17 00:00:00 2001 From: Till Schnell Date: Wed, 26 May 2021 20:59:25 +0200 Subject: [PATCH] Add tests for source code gen --- .../java/inferWildcards/TestInferWildcardsFields.java | 9 +++++++++ src/test/java/inferWildcards/TestInferWildcardsMap.java | 9 +++++++++ .../java/inferWildcards/TestInferWildcardsMapNested.java | 9 +++++++++ .../java/inferWildcards/TestInferWildcardsNested.java | 8 ++++++++ .../java/inferWildcards/TestInferWildcardsParamType.java | 9 +++++++++ .../java/inferWildcards/TestInferWildcardsSingle.java | 9 +++++++++ .../java/inferWildcards/TestInferWildcardsSingleLib.java | 9 +++++++++ 7 files changed, 62 insertions(+) diff --git a/src/test/java/inferWildcards/TestInferWildcardsFields.java b/src/test/java/inferWildcards/TestInferWildcardsFields.java index 1bb2fca7..70989f8b 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsFields.java +++ b/src/test/java/inferWildcards/TestInferWildcardsFields.java @@ -136,4 +136,13 @@ public class TestInferWildcardsFields assertThat("Generation Succeeded", null, CoreMatchers.anything()); } + + @Test + public void testGenrationSourceCode () throws ClassNotFoundException, IOException { + JavaTXCompilerWildcards wildcardsCompiler = getWildcardsCompiler(); + + wildcardsCompiler.generateSourceCode(new File(resourceDirPath + "/generatedSC")); + + assertThat("Generation Succeeded", null, CoreMatchers.anything()); + } } diff --git a/src/test/java/inferWildcards/TestInferWildcardsMap.java b/src/test/java/inferWildcards/TestInferWildcardsMap.java index 27d21198..9de5be75 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsMap.java +++ b/src/test/java/inferWildcards/TestInferWildcardsMap.java @@ -113,4 +113,13 @@ public class TestInferWildcardsMap assertThat("Generation Succeeded", null, CoreMatchers.anything()); } + + @Test + public void testGenrationSourceCode () throws ClassNotFoundException, IOException { + JavaTXCompilerWildcards wildcardsCompiler = getWildcardsCompiler(); + + wildcardsCompiler.generateSourceCode(new File(resourceDirPath + "/generatedSC")); + + assertThat("Generation Succeeded", null, CoreMatchers.anything()); + } } diff --git a/src/test/java/inferWildcards/TestInferWildcardsMapNested.java b/src/test/java/inferWildcards/TestInferWildcardsMapNested.java index d884c828..8649aa8d 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsMapNested.java +++ b/src/test/java/inferWildcards/TestInferWildcardsMapNested.java @@ -114,4 +114,13 @@ public class TestInferWildcardsMapNested assertThat("Generation Succeeded", null, CoreMatchers.anything()); } + + @Test + public void testGenrationSourceCode () throws ClassNotFoundException, IOException { + JavaTXCompilerWildcards wildcardsCompiler = getWildcardsCompiler(); + + wildcardsCompiler.generateSourceCode(new File(resourceDirPath + "/generatedSC")); + + assertThat("Generation Succeeded", null, CoreMatchers.anything()); + } } diff --git a/src/test/java/inferWildcards/TestInferWildcardsNested.java b/src/test/java/inferWildcards/TestInferWildcardsNested.java index 5f936c08..27046b04 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsNested.java +++ b/src/test/java/inferWildcards/TestInferWildcardsNested.java @@ -114,4 +114,12 @@ public class TestInferWildcardsNested assertThat("Generation Succeeded", null, CoreMatchers.anything()); } + @Test + public void testGenrationSourceCode () throws ClassNotFoundException, IOException { + JavaTXCompilerWildcards wildcardsCompiler = getWildcardsCompiler(); + + wildcardsCompiler.generateSourceCode(new File(resourceDirPath + "/generatedSC")); + + assertThat("Generation Succeeded", null, CoreMatchers.anything()); + } } diff --git a/src/test/java/inferWildcards/TestInferWildcardsParamType.java b/src/test/java/inferWildcards/TestInferWildcardsParamType.java index fc28ec7d..22790a26 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsParamType.java +++ b/src/test/java/inferWildcards/TestInferWildcardsParamType.java @@ -113,4 +113,13 @@ public class TestInferWildcardsParamType assertThat("Generation Succeeded", null, CoreMatchers.anything()); } + + @Test + public void testGenrationSourceCode () throws ClassNotFoundException, IOException { + JavaTXCompilerWildcards wildcardsCompiler = getWildcardsCompiler(); + + wildcardsCompiler.generateSourceCode(new File(resourceDirPath + "/generatedSC")); + + assertThat("Generation Succeeded", null, CoreMatchers.anything()); + } } diff --git a/src/test/java/inferWildcards/TestInferWildcardsSingle.java b/src/test/java/inferWildcards/TestInferWildcardsSingle.java index 11cc9b27..6c68b8fc 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsSingle.java +++ b/src/test/java/inferWildcards/TestInferWildcardsSingle.java @@ -113,4 +113,13 @@ public class TestInferWildcardsSingle assertThat("Generation Succeeded", null, CoreMatchers.anything()); } + + @Test + public void testGenrationSourceCode () throws ClassNotFoundException, IOException { + JavaTXCompilerWildcards wildcardsCompiler = getWildcardsCompiler(); + + wildcardsCompiler.generateSourceCode(new File(resourceDirPath + "/generatedSC")); + + assertThat("Generation Succeeded", null, CoreMatchers.anything()); + } } diff --git a/src/test/java/inferWildcards/TestInferWildcardsSingleLib.java b/src/test/java/inferWildcards/TestInferWildcardsSingleLib.java index 74c4dc2e..9468f86f 100644 --- a/src/test/java/inferWildcards/TestInferWildcardsSingleLib.java +++ b/src/test/java/inferWildcards/TestInferWildcardsSingleLib.java @@ -113,4 +113,13 @@ public class TestInferWildcardsSingleLib assertThat("Generation Succeeded", null, CoreMatchers.anything()); } + + @Test + public void testGenrationSourceCode () throws ClassNotFoundException, IOException { + JavaTXCompilerWildcards wildcardsCompiler = getWildcardsCompiler(); + + wildcardsCompiler.generateSourceCode(new File(resourceDirPath + "/generatedSC")); + + assertThat("Generation Succeeded", null, CoreMatchers.anything()); + } }