AnsweredAssumed Answered

Unable to compile the Java file- SVCode

Question asked by UdayKS on Oct 11, 2017
Latest reply on Oct 13, 2017 by krivo01

The following code example at . We are unable to compile this file since it is missing the library related to Application Class . May I know from which library do we need to import the Application class? 




import static*;import static org.junit.Assert.*; import;import org.junit.*; public class ExampleTest {    @Rule  public VirtualServerRule vs = new VirtualServerRule();    @Test  public void exampleTest() {     // virtual service definition    forGet("").doReturn(         okMessage()             .withJsonBody("{\"timestamp\":1498838896}")     );      // application connects to and retrieves JSON response    int currentTimestamp = Application.retrieveCurrentTimestamp();      // received timestamp check    assertEquals(1498838896, currentTimestamp);   } }