Search in sources :

Example 71 with Disabled

use of org.junit.jupiter.api.Disabled in project spring-framework by spring-projects.

the class PersistenceXmlParsingTests method testNoSchemaPersistence.

@Disabled("not doing schema parsing anymore for JPA 2.0 compatibility")
@Test
public void testNoSchemaPersistence() throws Exception {
    PersistenceUnitReader reader = new PersistenceUnitReader(new PathMatchingResourcePatternResolver(), new JndiDataSourceLookup());
    String resource = "/org/springframework/orm/jpa/persistence-no-schema.xml";
    assertThatExceptionOfType(RuntimeException.class).isThrownBy(() -> reader.readPersistenceUnitInfos(resource));
}
Also used : JndiDataSourceLookup(org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup) PathMatchingResourcePatternResolver(org.springframework.core.io.support.PathMatchingResourcePatternResolver) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 72 with Disabled

use of org.junit.jupiter.api.Disabled in project GDSC-SMLM by aherbert.

the class LvmGradientProcedureTest method gradientProcedureFastLogMleCannotComputeGradientWithHighPrecision.

@Disabled("This test now passes as the tolerance for computing the gradient has been lowered " + " so that the tests pass under a stress test using many different random seeds.")
@SeededTest
void gradientProcedureFastLogMleCannotComputeGradientWithHighPrecision(RandomSeed seed) {
    // Try different precision
    for (int n = FastLog.N; n < 23; n++) {
        try {
            // logger.fine(FunctionUtils.getSupplier("Precision n=%d", n);
            fastLog = new TurboLog2(n);
            gradientProcedureComputesGradient(seed, new SingleFreeCircularErfGaussian2DFunction(blockWidth, blockWidth), Type.FAST_LOG_MLE, false);
        } catch (final AssertionError ex) {
            continue;
        } finally {
            // Reset
            fastLog = null;
        }
        return;
    }
    Assertions.fail();
}
Also used : TurboLog2(uk.ac.sussex.gdsc.smlm.function.TurboLog2) SingleFreeCircularErfGaussian2DFunction(uk.ac.sussex.gdsc.smlm.function.gaussian.erf.SingleFreeCircularErfGaussian2DFunction) SeededTest(uk.ac.sussex.gdsc.test.junit5.SeededTest) Disabled(org.junit.jupiter.api.Disabled)

Example 73 with Disabled

use of org.junit.jupiter.api.Disabled in project graylog2-server by Graylog2.

the class NaturalDateParserTest method multipleDaytestParseAlignToAGivenTime.

@Test
@Disabled
public /**
 * This test should be ignored for now. The problem is, that the to-date has the hour subtracted by 1 - which is not reasonable
 * at all in this context but without further digging into Natty not solvable. And that effort would be too much by now.
 */
void multipleDaytestParseAlignToAGivenTime() throws Exception {
    final DateTimeFormatter df = DateTimeFormat.forPattern("HH:mm:ss");
    for (String[] test : multipleDaytestsThatAlignToAGivenTime) {
        NaturalDateParser.Result result = naturalDateParser.parse(test[0]);
        assertNotNull(result.getFrom());
        assertNotNull(result.getTo());
        assertThat(df.print(result.getFrom())).as("time part of date should equal " + test[1] + " in").isEqualTo(test[1]);
        assertThat(df.print(result.getTo())).as("time part of date should equal " + test[1] + " in").isEqualTo(test[1]);
    }
}
Also used : DateTimeFormatter(org.joda.time.format.DateTimeFormatter) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 74 with Disabled

use of org.junit.jupiter.api.Disabled in project graylog2-server by Graylog2.

the class NaturalDateParserTest method testNatty53.

/**
 *  Bug from https://github.com/joestelmach/natty/issues
 *  Test is ignored because it fails, test can be used in the future to check if it's solved
 */
@Test
@Disabled
public void testNatty53() throws Exception {
    DateTime reference = DateTime.now(DateTimeZone.UTC);
    NaturalDateParser.Result natty53 = naturalDateParser.parse("Tue Jan 12 00:00:00 UTC 2016", reference.toDate());
    assertThat(natty53.getFrom().getYear()).as("from should be 2016").isEqualTo(2016);
    assertThat(natty53.getTo()).as("to should be the reference date").isEqualTo(reference);
}
Also used : DateTime(org.joda.time.DateTime) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 75 with Disabled

use of org.junit.jupiter.api.Disabled in project mybatis-3 by mybatis.

the class UnpooledDataSourceTest method shouldRegisterDynamicallyLoadedDriver.

@Disabled("Requires MySQL server and a driver.")
@Test
void shouldRegisterDynamicallyLoadedDriver() throws Exception {
    int before = countRegisteredDrivers();
    ClassLoader driverClassLoader = null;
    UnpooledDataSource dataSource = null;
    driverClassLoader = new URLClassLoader(new URL[] { new URL("jar:file:/PATH_TO/mysql-connector-java-5.1.25.jar!/") });
    dataSource = new UnpooledDataSource(driverClassLoader, "com.mysql.jdbc.Driver", "jdbc:mysql://127.0.0.1/test", "root", "");
    dataSource.getConnection().close();
    assertEquals(before + 1, countRegisteredDrivers());
    driverClassLoader = new URLClassLoader(new URL[] { new URL("jar:file:/PATH_TO/mysql-connector-java-5.1.25.jar!/") });
    dataSource = new UnpooledDataSource(driverClassLoader, "com.mysql.jdbc.Driver", "jdbc:mysql://127.0.0.1/test", "root", "");
    dataSource.getConnection().close();
    assertEquals(before + 1, countRegisteredDrivers());
}
Also used : URLClassLoader(java.net.URLClassLoader) URLClassLoader(java.net.URLClassLoader) URL(java.net.URL) 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