Init repo
This commit is contained in:
14
app/src/main/java/com/bartlomiejpluta/samplegame/App.java
Executable file
14
app/src/main/java/com/bartlomiejpluta/samplegame/App.java
Executable file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* This Java source file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
package com.bartlomiejpluta.samplegame;
|
||||
|
||||
public class App {
|
||||
public String getGreeting() {
|
||||
return "Hello World!";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new App().getGreeting());
|
||||
}
|
||||
}
|
||||
14
app/src/test/java/com/bartlomiejpluta/samplegame/AppTest.java
Executable file
14
app/src/test/java/com/bartlomiejpluta/samplegame/AppTest.java
Executable file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* This Java source file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
package com.bartlomiejpluta.samplegame;
|
||||
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class AppTest {
|
||||
@Test public void testAppHasAGreeting() {
|
||||
App classUnderTest = new App();
|
||||
assertNotNull("app should have a greeting", classUnderTest.getGreeting());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user