* moving jmh into libraries module

* refactoring jmh

* Update pom.xml

* manual algorightm

* with BM result

* fix for space issue

* Fixed indentation

* change as per suggestion

* vavr either

* adding unit test and othe rutilities

* adding concurrent module

* concurrent package description

* concurrent package description

* Update EitherUnitTest.java

* introducing lambda expression

* jooby project

* jooby project

* reducing employee bean content

* bootique module

* bootique

* bootique

* undertow module

* undertow module

* refactoring

* using lambda

* as per baeldung formatter

* easy code added for simplicity

* simpliflying

* adding JDeferred module

* moved jdeferred to librarires module
This commit is contained in:
Abhinab Kanrar
2017-09-04 02:09:16 +05:30
committed by Grzegorz Piwowarek
parent d8398caaa2
commit acf9bf7c4a
9 changed files with 839 additions and 601 deletions
@@ -0,0 +1,28 @@
package com.baeldung.jdeffered;
import org.junit.Test;
import com.baeldung.jdeffered.PipeDemo.Result;
import static org.junit.Assert.assertEquals;
public class AppTest {
@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);
}
}