use of org.junit.jupiter.api.Disabled in project ojAlgo by optimatika.
the class MarketShareCase method testFullMIP.
@Test
@Disabled("Underscored before JUnit 5")
public void testFullMIP() {
final ExpressionsBasedModel tmpModel = MarketShareCase.makeModel();
// tmpModel.options.debug_stream = BasicLogger.DEBUG;
// tmpModel.options.debug_solver = IntegerSolver.class;
// tmpModel.options.validate = true;
final Result tmpResult = tmpModel.minimise();
TestUtils.assertEquals("OBJECTIVE_MIP", OBJECTIVE_MIP.doubleValue(), tmpResult.getValue(), 1E-14 / PrimitiveMath.THREE);
for (final Variable tmpVariable : tmpModel.getVariables()) {
TestUtils.assertEquals(tmpVariable.getName(), SOLUTION.get(tmpVariable.getName()).doubleValue(), tmpVariable.getValue().doubleValue(), 1E-14 / PrimitiveMath.THREE);
}
}
use of org.junit.jupiter.api.Disabled in project ojAlgo by optimatika.
the class LpsolveSemiContCase method testSemiContNot.
@Test
@Disabled("Underscored before JUnit 5")
public void testSemiContNot() {
final File tmpFile = new File(PATH + "lpsolve_sc_not.mps");
final MathProgSysModel tmpMPS = MathProgSysModel.make(tmpFile);
final ExpressionsBasedModel tmpModel = tmpMPS.getExpressionsBasedModel();
tmpModel.minimise();
TestUtils.assertTrue(tmpModel.validate());
final BigDecimal tmpExpVal = new BigDecimal("3.93333");
final double tmpActVal = tmpModel.minimise().getValue();
if (!tmpModel.validate(PRECISION)) {
TestUtils.fail(SOLUTION_NOT_VALID);
}
TestUtils.assertEquals(tmpExpVal.doubleValue(), tmpActVal, PRECISION);
}
use of org.junit.jupiter.api.Disabled in project indriya by unitsofmeasurement.
the class LocalFormatTest method testPrefixKm.
@Test
@Disabled
public // TODO LocalUnitFormat won't parse Compound Units, EBNF does, also see https://github.com/unitsofmeasurement/uom-se/issues/145
void testPrefixKm() {
final UnitFormat format = LocalUnitFormat.getInstance();
Unit<?> u = format.parse("km");
assertEquals(KILO(METRE), u);
assertEquals("km", u.toString());
}
use of org.junit.jupiter.api.Disabled in project indriya by unitsofmeasurement.
the class PrefixTest method testNestedOperationsShouldBeSame.
@Test
@Disabled("This is research for https://github.com/unitsofmeasurement/uom-se/issues/164")
public void testNestedOperationsShouldBeSame() {
Unit<Mass> m1 = MICRO(GRAM);
Unit<Mass> m2 = GRAM.divide(1000).divide(1000);
UnitConverter c1 = m1.getConverterTo(m2);
List steps1 = c1.getConversionSteps();
UnitConverter c2 = m2.getConverterTo(m1);
List steps2 = c2.getConversionSteps();
assertEquals(c1, c2);
assertEquals(m1, m2);
}
use of org.junit.jupiter.api.Disabled in project robozonky by RoboZonky.
the class LoanDescriptorTest method constructorForCaptcha.
@Disabled("Looks like CAPTCHA is disabled for now. Let's wait and see if it comes back.")
@Test
void constructorForCaptcha() {
final Loan mockedLoan = LoanDescriptorTest.mockLoan();
final LoanDescriptor ld = new LoanDescriptor(mockedLoan);
assertSoftly(softly -> {
softly.assertThat(ld.item()).isSameAs(mockedLoan);
softly.assertThat(ld.getLoanCaptchaProtectionEndDateTime()).isPresent().contains(mockedLoan.getDatePublished().plus(Settings.INSTANCE.getCaptchaDelay()));
});
}
Aggregations