use of org.junit.jupiter.api.Disabled in project robo4j by Robo4J.
the class TankExampleTests method legoTankExampleTest.
@Test
@Disabled("rethink and remove dependency")
void legoTankExampleTest() throws Exception {
RoboBuilder builder = new RoboBuilder();
Configuration config = new ConfigurationBuilder().addString("target", ID_UNIT_CONTROLLER).addInteger("port", PORT).addString("packages", "com.robo4j.units.lego.example.codec").addString(RoboHttpUtils.PROPERTY_UNIT_PATHS_CONFIG, HttpPathConfigJsonBuilder.Builder().addPath(ID_UNIT_CONTROLLER, HttpMethod.GET).build()).build();
builder.add(HttpServerUnit.class, config, ID_HTTP);
builder.add(TankExampleController.class, new ConfigurationBuilder().addString("target", ID_PLATFORM).build(), ID_UNIT_CONTROLLER);
/* platform is listening to the bus */
config = new ConfigurationBuilder().addString("leftMotorPort", "B").addCharacter("leftMotorType", 'N').addString("rightMotorPort", "C").addCharacter("rightMotorType", 'N').build();
builder.add(SimpleTankTestUnit.class, config, ID_PLATFORM);
/* lcd is listening to the bus */
builder.add(LcdTestUnit.class, ID_LCD);
RoboContext context = builder.build();
context.start();
context.getReference(ID_LCD).sendMessage("Press <Enter> to quit!");
System.in.read();
context.shutdown();
}
use of org.junit.jupiter.api.Disabled in project immutables by immutables.
the class JacksonCodecsTest method docOfDoc.
/**
* TODO better handle native BSON container types (eg. Map / List) inside regular immutable objects
*/
@Disabled("currently fails docs inside docs")
@Test
public void docOfDoc() throws IOException {
BsonModel model = DEFAULT.withDocument(new Document("key", new Document("realKey", 42)));
writeThenRead(JacksonCodecs.registryFromMapper(mapper), mapper, model);
}
use of org.junit.jupiter.api.Disabled in project robo4j by Robo4J.
the class RoboApplicationTests method roboApplicationLifeCycle.
@Disabled("individual test")
@Test
void roboApplicationLifeCycle() throws RoboBuilderException {
final InputStream contextIS = Thread.currentThread().getContextClassLoader().getResourceAsStream("test.xml");
final RoboBuilder builder = new RoboBuilder();
builder.add(contextIS);
final RoboContext system = builder.build();
final RoboApplication roboApp = new RoboApplication();
roboApp.launch(system);
}
use of org.junit.jupiter.api.Disabled in project robo4j by Robo4J.
the class RoboHttpDynamicTests method pingExternalSystem.
/**
* testing ping external system
*
* @throws Exception
* exception
*/
@Disabled("intent to run manual")
@Test
void pingExternalSystem() throws Exception {
RoboBuilder pingSystemBuilder = getHttpClientRobotBuilder("127.0.0.1", 8080);
pingSystemBuilder.add(StringConsumer.class, StringConsumer.NAME);
RoboContext pingSystemContext = pingSystemBuilder.build();
pingSystemContext.start();
System.out.println("PingSystem state after start:");
System.out.println(SystemUtil.printStateReport(pingSystemContext));
RoboReference<HttpDecoratedRequest> httpClient = pingSystemContext.getReference(ID_CLIENT_UNIT);
Thread.sleep(1000);
for (int i = 0; i < 1; i++) {
HttpRequestDenominator denominator = new HttpRequestDenominator(HttpMethod.GET, "/noparams", HttpVersion.HTTP_1_1);
HttpDecoratedRequest request = new HttpDecoratedRequest(denominator);
request.addCallback(StringConsumer.NAME);
httpClient.sendMessage(request);
}
Thread.sleep(1000);
pingSystemContext.stop();
System.out.println("PingSystem state after stop:");
System.out.println(SystemUtil.printStateReport(pingSystemContext));
}
use of org.junit.jupiter.api.Disabled in project jmeter by apache.
the class TestStatCalculator method testPercentagePointBug.
@Test
@Disabled
public // Disabled due to in progress Bug 61071
void testPercentagePointBug() throws Exception {
long[] values = new long[] { 10L, 9L, 5L, 6L, 1L, 3L, 8L, 2L, 7L, 4L };
DescriptiveStatistics statistics = new DescriptiveStatistics();
for (long l : values) {
calc.addValue(l);
statistics.addValue(l);
}
assertEquals(9, calc.getPercentPoint(0.8999999).intValue());
assertEquals(Math.round(statistics.getPercentile(90)), calc.getPercentPoint(0.9).intValue());
}
Aggregations