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 https://github.com/CA-DevTest/CodeSV . 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 com.ca.codesv.protocols.http.fluent.HttpFluentInterface.*;import static org.junit.Assert.*; import com.ca.codesv.engine.junit4.VirtualServerRule;import org.junit.*; public class ExampleTest {    @Rule  public VirtualServerRule vs = new VirtualServerRule();    @Test  public void exampleTest() {     // virtual service definition    forGet("http://www.example.com/time").doReturn(         okMessage()             .withJsonBody("{\"timestamp\":1498838896}")     );      // application connects to http://www.example.com/test and retrieves JSON response    int currentTimestamp = Application.retrieveCurrentTimestamp();      // received timestamp check    assertEquals(1498838896, currentTimestamp);   } }

Outcomes