Browse Source

refactor: Deleted unit test for main class.

Removed scanner from main class.
remotes/origin/locations
David Hermann 2 years ago
parent
commit
dfc7fae51a
  1. 4
      src/main/java/org/bitbiome/Main.java
  2. 13
      src/test/java/org/bitbiome/TestMain.java

4
src/main/java/org/bitbiome/Main.java

@ -6,14 +6,10 @@ import java.util.Scanner;
public class Main {
private Scanner s = new Scanner(System.in);
public static void main(String[] args) {
//JSONObject playerConfig = JsonParser.getJSONObject("playerconfig.json");
new Boot();
}
public static int getLucky() {
return 7;
}
}

13
src/test/java/org/bitbiome/TestMain.java

@ -1,13 +0,0 @@
package org.bitbiome;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class TestMain {
@Test
public void testLucky() {
assertEquals(7, Main.getLucky());
}
}
Loading…
Cancel
Save