aboutsummaryrefslogtreecommitdiffhomepage
path: root/base_workspace/examples/java-native/src/test/java/com/example/myproject/TestCustomGreeting.java
diff options
context:
space:
mode:
Diffstat (limited to 'base_workspace/examples/java-native/src/test/java/com/example/myproject/TestCustomGreeting.java')
-rw-r--r--base_workspace/examples/java-native/src/test/java/com/example/myproject/TestCustomGreeting.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/base_workspace/examples/java-native/src/test/java/com/example/myproject/TestCustomGreeting.java b/base_workspace/examples/java-native/src/test/java/com/example/myproject/TestCustomGreeting.java
deleted file mode 100644
index f14b7d234a..0000000000
--- a/base_workspace/examples/java-native/src/test/java/com/example/myproject/TestCustomGreeting.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.example.myproject;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-
-import java.io.ByteArrayOutputStream;
-import java.io.PrintStream;
-import java.nio.charset.StandardCharsets;
-
-/**
- * Tests using a resource file to replace "Hello" in the output.
- */
-public class TestCustomGreeting {
-
- @Test
- public void testNoArgument() throws Exception {
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- Greeter.out = new PrintStream(out);
- Greeter.main();
- assertEquals("Bye world\n", new String(out.toByteArray(), StandardCharsets.UTF_8));
- }
-
- @Test
- public void testWithArgument() throws Exception {
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- Greeter.out = new PrintStream(out);
- Greeter.main("toto");
- assertEquals("Bye toto\n", new String(out.toByteArray(), StandardCharsets.UTF_8));
- }
-
-}