Search in sources :

Example 56 with Disabled

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();
}
Also used : ConfigurationBuilder(com.robo4j.configuration.ConfigurationBuilder) Configuration(com.robo4j.configuration.Configuration) RoboBuilder(com.robo4j.RoboBuilder) RoboContext(com.robo4j.RoboContext) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 57 with Disabled

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);
}
Also used : Document(org.bson.Document) BsonDocument(org.bson.BsonDocument) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 58 with Disabled

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);
}
Also used : InputStream(java.io.InputStream) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 59 with Disabled

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));
}
Also used : HttpDecoratedRequest(com.robo4j.socket.http.message.HttpDecoratedRequest) RoboBuilder(com.robo4j.RoboBuilder) RoboContext(com.robo4j.RoboContext) HttpRequestDenominator(com.robo4j.socket.http.message.HttpRequestDenominator) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 60 with Disabled

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());
}
Also used : DescriptiveStatistics(org.apache.commons.math3.stat.descriptive.DescriptiveStatistics) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Aggregations

Disabled (org.junit.jupiter.api.Disabled)228 Test (org.junit.jupiter.api.Test)214 File (java.io.File)13 TransactionalIntegrationTest (org.hisp.dhis.TransactionalIntegrationTest)13 NoGood (at.ac.tuwien.kr.alpha.core.common.NoGood)10 ArrayList (java.util.ArrayList)10 HashMap (java.util.HashMap)9 NAR (nars.NAR)9 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)9 BaseDataTest (org.apache.ibatis.BaseDataTest)8 TestNAR (nars.test.TestNAR)7 URL (org.apache.dubbo.common.URL)7 SqlSession (org.apache.ibatis.session.SqlSession)7 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)7 AnswerSet (at.ac.tuwien.kr.alpha.api.AnswerSet)6 ASPCore2Program (at.ac.tuwien.kr.alpha.api.programs.ASPCore2Program)6 FieldValueModel (com.synopsys.integration.alert.common.rest.model.FieldValueModel)6 IntegrationPerformanceTestRunner (com.synopsys.integration.alert.performance.utility.IntegrationPerformanceTestRunner)6 List (java.util.List)6 RectDouble2D (jcog.tree.rtree.rect.RectDouble2D)6