Updaded README with examples, etc.
This commit is contained in:
parent
cfd6bb7c18
commit
0e48265890
3 changed files with 35 additions and 10 deletions
|
@ -1,11 +1,11 @@
|
|||
package com.example;
|
||||
|
||||
public class ExamplesMain {
|
||||
public String getMessage() {
|
||||
return "Hello World!";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new ExamplesMain().getMessage());
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return "Hello World!";
|
||||
}
|
||||
}
|
|
@ -1,6 +1,10 @@
|
|||
package com.example;
|
||||
|
||||
public class ExamplesTest {
|
||||
public static void main(String[] args) {
|
||||
new ExamplesTest().verifyHello();
|
||||
}
|
||||
|
||||
void verifyHello() {
|
||||
if (!"Hello World!".equals(new ExamplesMain().getMessage())) {
|
||||
throw new AssertionError();
|
||||
|
@ -8,8 +12,4 @@ public class ExamplesTest {
|
|||
System.out.println("Succeeded");
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new ExamplesTest().verifyHello();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue