chore: make code style consistent
This commit is contained in:
parent
a2cea2f33e
commit
89ec3fbf29
380 changed files with 479 additions and 936 deletions
|
|
@ -94,7 +94,6 @@ public class ServicesTest {
|
|||
Assertions.assertNotNull(
|
||||
servicePipeline.pump(new MockService.MockContext("oi")).through(MockService.class)
|
||||
.getResultAsynchronously().get());
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -281,13 +280,12 @@ public class ServicesTest {
|
|||
);
|
||||
servicePipeline.pump(new MockService.MockContext("pls throw exception"))
|
||||
.through(MockService.class).getResult((result, throwable) -> {
|
||||
Assertions.assertNotNull(throwable);
|
||||
Assertions.assertEquals(
|
||||
DefaultMockService.TotallyIntentionalException.class,
|
||||
throwable.getClass()
|
||||
);
|
||||
Assertions.assertNull(result);
|
||||
});
|
||||
Assertions.assertNotNull(throwable);
|
||||
Assertions.assertEquals(
|
||||
DefaultMockService.TotallyIntentionalException.class,
|
||||
throwable.getClass()
|
||||
);
|
||||
Assertions.assertNull(result);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,5 +31,4 @@ public class AnnotatedMethodTest {
|
|||
public MockService.MockResult handle(final MockService.MockContext context) {
|
||||
return new MockService.MockResult(context.getString().length());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,5 +41,4 @@ public class CompletingPartialResultService implements MockPartialResultService
|
|||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,5 @@ public final class DefaultMockService implements MockService {
|
|||
public static class TotallyIntentionalException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -6277471288867949574L;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,5 +38,4 @@ public class DefaultPartialRequestService implements MockPartialResultService {
|
|||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,5 +32,4 @@ public class DefaultSideEffectService implements MockSideEffectService {
|
|||
mockPlayer.setHealth(0);
|
||||
return State.ACCEPTED;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,5 +31,4 @@ public class InterruptingMockConsumer implements MockConsumerService {
|
|||
public void accept(final MockService.MockContext mockContext) {
|
||||
ConsumerService.interrupt();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ public class MockChunkedRequest
|
|||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -59,7 +58,5 @@ public class MockChunkedRequest
|
|||
public String getSound() {
|
||||
return this.sound;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,5 +33,4 @@ public class MockOrderedFirst implements MockService {
|
|||
public MockResult handle(final MockContext mockContext) {
|
||||
return new MockResult(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,5 +33,4 @@ public class MockOrderedLast implements MockService {
|
|||
public MockResult handle(final MockContext mockContext) {
|
||||
return new MockResult(2);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,5 +32,4 @@ public class MockResultConsumer implements SideEffectService<MockService.MockRes
|
|||
public State handle(final MockService.MockResult mockResultConsumer) {
|
||||
return State.ACCEPTED;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ public interface MockService extends Service<MockService.MockContext, MockServic
|
|||
public void setState(final String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MockResult {
|
||||
|
|
@ -61,7 +60,5 @@ public interface MockService extends Service<MockService.MockContext, MockServic
|
|||
public int getInteger() {
|
||||
return this.integer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,5 @@ public interface MockSideEffectService extends SideEffectService<MockSideEffectS
|
|||
public void setHealth(final int health) {
|
||||
this.health = health;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,5 +36,4 @@ public class SecondaryMockService implements MockService, Predicate<MockService.
|
|||
public boolean test(final MockContext mockContext) {
|
||||
return mockContext.getString().equalsIgnoreCase("potato");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,5 +31,4 @@ public class SecondaryMockSideEffectService implements MockSideEffectService {
|
|||
public State handle(final MockPlayer mockPlayer) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,5 +29,4 @@ public class StateSettingConsumerService implements MockConsumerService {
|
|||
public void accept(final MockService.MockContext mockContext) {
|
||||
mockContext.setState("");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue