Skip to content

Commit

Permalink
Remove prefix test from junit4 methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dirong committed Mar 14, 2016
1 parent 39d90a0 commit 632062c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions janet/src/test/java/io/techery/janet/JanetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ public void setup() throws JanetException {
}

@Test
public void testCreateObservable() {
public void createObservable() {
TestSubscriber<ActionState<TestAction>> subscriber = new TestSubscriber<ActionState<TestAction>>();
actionPipe.createObservable(new TestAction()).subscribe(subscriber);
assertSubscriberWithStates(subscriber);
}

@Test
public void testSendWithObserve() {
public void sendWithObserve() {
TestSubscriber<ActionState<TestAction>> subscriber = new TestSubscriber<ActionState<TestAction>>();
actionPipe.observe().subscribe(subscriber);
actionPipe.send(new TestAction());
Expand All @@ -54,7 +54,7 @@ public void testSendWithObserve() {
}

@Test
public void testSendWithObserveWithReplay() {
public void sendWithObserveWithReplay() {
TestSubscriber<ActionState<TestAction>> subscriber = new TestSubscriber<ActionState<TestAction>>();
actionPipe.observeWithReplay()
.subscribe(subscriber);
Expand All @@ -69,7 +69,7 @@ public void testSendWithObserveWithReplay() {
}

@Test
public void testCreateObservableSuccess() {
public void createObservableSuccess() {
TestSubscriber<TestAction> subscriber = new TestSubscriber<TestAction>();
TestAction action = new TestAction();
actionPipe.createObservableSuccess(action).subscribe(subscriber);
Expand All @@ -79,7 +79,7 @@ public void testCreateObservableSuccess() {
}

@Test
public void testSendWithObserveSuccess() {
public void sendWithObserveSuccess() {
TestSubscriber<TestAction> subscriber = new TestSubscriber<TestAction>();
TestAction action = new TestAction();
actionPipe.observeSuccess().subscribe(subscriber);
Expand All @@ -90,11 +90,10 @@ public void testSendWithObserveSuccess() {
}

@Test
public void testSendWithObserveSuccessWithReplay() {
public void sendWithObserveSuccessWithReplay() {
TestSubscriber<TestAction> subscriber = new TestSubscriber<TestAction>();
TestAction action = new TestAction();
actionPipe.observeSuccessWithReplay()
.subscribe(subscriber);
actionPipe.observeSuccessWithReplay().subscribe(subscriber);
actionPipe.send(action);
subscriber.unsubscribe();
assertSubscriberWithSingleValue(subscriber);
Expand All @@ -109,7 +108,7 @@ public void testSendWithObserveSuccessWithReplay() {
}

@Test
public void testCancel() {
public void cancelAfterSend() {
final TestAction action = new TestAction();
TestSubscriber<ActionState<TestAction>> subscriber = new TestSubscriber<ActionState<TestAction>>(
new ActionStateSubscriber<TestAction>()
Expand All @@ -124,7 +123,7 @@ public void testCancel() {
}

@Test
public void testClearReplays() {
public void clearReplays() {
actionPipe.send(new TestAction());
actionPipe.clearReplays();
TestSubscriber<ActionState<TestAction>> subscriber = new TestSubscriber<ActionState<TestAction>>();
Expand All @@ -136,7 +135,7 @@ public void testClearReplays() {
}

@Test
public void testStatusFail() throws JanetException {
public void statusFail() throws JanetException {
TestSubscriber<ActionState<TestAction>> subscriber = new TestSubscriber<ActionState<TestAction>>();
doThrow(JanetException.class).when(service).sendInternal(any(ActionHolder.class));
actionPipe.createObservable(new TestAction()).subscribe(subscriber);
Expand Down

0 comments on commit 632062c

Please sign in to comment.