* upgrade to spring boot 1.5.2
* add full update to REST API
* modify ratings controller
* upgrade herold
* fix integration test
* fix integration test
* minor fix
* fix integration test
* fix integration test
* minor cleanup
* minor cleanup
* remove log4j properties
* use standard logbook.xml
* remove log4j dependencies
* remove commons-logging
* merge
* fix conflict
* exclude commons-logging dependency
* cleanup
* minor fix
* minor fix
* fix dependency issues
* Revert "fix dependency issues"
This reverts commit 83bf1f9fd2.
* fix dependency issues
* minor fix
* minor fix
* minor fix
* cleanup generated files
* fix commons-logging issue
* add parent to pom
* cleanup parent dependencies
* cleanup pom
* cleanup pom
* add missing parent
* fix logging issue
* fix test names
41 lines
967 B
Java
41 lines
967 B
Java
package com.baeldung.thrift;
|
|
|
|
import org.apache.thrift.transport.TTransportException;
|
|
import org.junit.After;
|
|
import org.junit.Assert;
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
|
|
public class CrossPlatformServiceIntegrationTest {
|
|
|
|
private CrossPlatformServiceServer server = new CrossPlatformServiceServer();
|
|
|
|
@Before
|
|
public void setUp() {
|
|
new Thread(() -> {
|
|
try {
|
|
server.start();
|
|
} catch (TTransportException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}).start();
|
|
try {
|
|
// wait for the server start up
|
|
Thread.sleep(1000);
|
|
} catch (InterruptedException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
@After
|
|
public void tearDown() {
|
|
server.stop();
|
|
}
|
|
|
|
@Test
|
|
public void ping() {
|
|
CrossPlatformServiceClient client = new CrossPlatformServiceClient();
|
|
Assert.assertTrue(client.ping());
|
|
}
|
|
}
|