Skip to content

Commit

Permalink
all models are up and running!
Browse files Browse the repository at this point in the history
  • Loading branch information
omarsahl committed Dec 18, 2017
1 parent 3edd43f commit 6db79d1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/java/UnitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,26 @@ public void onComplete() {
}
});
}

@Test
public void testMMCQueueModel() {
MMCQueueModel model = new MMCQueueModel();
Observable<PerformanceMetrics> ob = model.getPerformanceMetrics(new QueueSystemInput(0.1, 1 / 20.0,3, null));
ob.subscribeWith(new DisposableObserver<PerformanceMetrics>() {
@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!");
}
});
}
}

0 comments on commit 6db79d1

Please sign in to comment.