* BAEL-1712 Fix tests in libraries project -Renamed 45 test files to standard naming conventions. -Updated maven dependencies in libraries/pom.xml -Fixed assertion errors in some tests. -Included libraries project back into parent pom.xml * BAEL-1712 Fix tests in libraries project -Downgraded apache maven pmd plugin from 3.9.0 to 3.8 because pmd 6.0.1 present in pmd plugin 3.9.0 was unable to resolve classes having static final inner classes and was resulting into build failure. * BAEL-1712 Fix libraries -Fixed JodaTimeUnitTest
27 lines
616 B
Java
27 lines
616 B
Java
package com.baeldung.jdeffered;
|
|
|
|
import com.baeldung.jdeffered.PipeDemo.Result;
|
|
import org.junit.Test;
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
public class JDeferredUnitTest {
|
|
|
|
@Test
|
|
public void givenJob_expectPromise() {
|
|
PromiseDemo.startJob("Baeldung Job");
|
|
}
|
|
|
|
@Test
|
|
public void givenMsg_expectModifiedMsg() {
|
|
String msg = FilterDemo.filter("Baeldung");
|
|
assertEquals("Hello Baeldung", msg);
|
|
}
|
|
|
|
@Test
|
|
public void givenNum_validateNum_expectStatus() {
|
|
Result result = PipeDemo.validate(80);
|
|
assertEquals(result, Result.SUCCESS);
|
|
}
|
|
}
|