From 75965dfd3764dd69c3c5d8392c91b4c122706e4a Mon Sep 17 00:00:00 2001 From: Omar Sahl Date: Mon, 18 Dec 2017 20:00:37 +0200 Subject: [PATCH] added DD1KOutputScreen.java and dd1k_output_screen.fxml --- src/main/java/ui/DD1KOutputScreen.java | 8 +++++++ .../resources/fxml/dd1k_output_screen.fxml | 14 +++++++++++ src/test/java/UnitTest.java | 23 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 src/main/java/ui/DD1KOutputScreen.java create mode 100644 src/main/resources/fxml/dd1k_output_screen.fxml diff --git a/src/main/java/ui/DD1KOutputScreen.java b/src/main/java/ui/DD1KOutputScreen.java new file mode 100644 index 0000000..f18eee8 --- /dev/null +++ b/src/main/java/ui/DD1KOutputScreen.java @@ -0,0 +1,8 @@ +package ui; + +/** + * Created by Omar + * Date: 18-Dec-17. + */ +public class DD1KOutputScreen { +} diff --git a/src/main/resources/fxml/dd1k_output_screen.fxml b/src/main/resources/fxml/dd1k_output_screen.fxml new file mode 100644 index 0000000..a8a016d --- /dev/null +++ b/src/main/resources/fxml/dd1k_output_screen.fxml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/src/test/java/UnitTest.java b/src/test/java/UnitTest.java index 36861a1..7cebd88 100644 --- a/src/test/java/UnitTest.java +++ b/src/test/java/UnitTest.java @@ -1,6 +1,7 @@ import io.reactivex.Observable; import io.reactivex.observers.DisposableObserver; import models.MM1KQueueModel; +import models.MM1QueueModel; import models.PerformanceMetrics; import models.QueueSystemInput; import org.apache.commons.lang3.builder.ToStringExclude; @@ -44,4 +45,26 @@ public void onComplete() { }); } + + @Test + public void testMM1QueueModel() { + MM1QueueModel model = new MM1QueueModel(); + Observable ob = model.getPerformanceMetrics(new QueueSystemInput(50.0, 60.0, null, null)); + ob.subscribeWith(new DisposableObserver() { + @Override + public void onNext(PerformanceMetrics performanceMetrics) { + System.out.println(performanceMetrics); + } + + @Override + public void onError(Throwable e) { + e.printStackTrace(); + } + + @Override + public void onComplete() { + System.out.println("done!"); + } + }); + } }