Package test
Class TestModel
java.lang.Object
test.TestModel
public class TestModel
extends java.lang.Object
TestModel class tests the data model.
-
Field Summary
Fields Modifier and Type Field Description private static Channel
c
private static java.lang.String
FILENAME
private static TestJSONBuilder
jsonFactory
private static Satellite
satellite
private static java.util.ArrayList<Satellite>
satelliteList
private static Transponder
transponder
-
Constructor Summary
Constructors Constructor Description TestModel()
-
Method Summary
Modifier and Type Method Description static void
cleanUp()
Clean up function, gets called after all tests.static void
init()
Init function, gets called before all tests.void
testChannel()
Tests Channel class.void
testSatellite()
void
testTransponder()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
satelliteList
-
satellite
-
transponder
-
c
-
FILENAME
private static final java.lang.String FILENAME- See Also:
- Constant Field Values
-
jsonFactory
-
-
Constructor Details
-
TestModel
public TestModel()
-
-
Method Details
-
init
@BeforeAll public static void init()Init function, gets called before all tests. Creates test JSON file, parses satellite data from it and holds the first satellite, its first transponder and its first channel. -
testSatellite
@Test public void testSatellite() -
testTransponder
@Test public void testTransponder() -
testChannel
@Test public void testChannel()Tests Channel class. -
cleanUp
@AfterAll public static void cleanUp()Clean up function, gets called after all tests. Deletes test JSON file.
-