diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-07-09 12:56:54 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-07-09 12:56:54 +0200 |
commit | 65163646205b6e05139485fe957bceabe531f447 (patch) | |
tree | c35c0061a8c7e8ad3f054e632ed6ecfb1fb1b3cc /src/test/java/at/gv/egiz | |
parent | 8e36fa01ea42d282eacdc78d6749daf9ae1ede9c (diff) | |
download | moa-zs-65163646205b6e05139485fe957bceabe531f447.tar.gz moa-zs-65163646205b6e05139485fe957bceabe531f447.tar.bz2 moa-zs-65163646205b6e05139485fe957bceabe531f447.zip |
Minor Fixes And Refactoring
- Fix typo in SafeResponseToFileSink.
- MoaZSException: Simplify constructor by replacing lots of arguments
with the builder instance.
- Fix minor codesmells (unused imports, superfluous braces).
Diffstat (limited to 'src/test/java/at/gv/egiz')
-rw-r--r-- | src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java (renamed from src/test/java/at/gv/egiz/moazs/SafeResponseToFileSinkTest.java) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/java/at/gv/egiz/moazs/SafeResponseToFileSinkTest.java b/src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java index c85c601..ca501c8 100644 --- a/src/test/java/at/gv/egiz/moazs/SafeResponseToFileSinkTest.java +++ b/src/test/java/at/gv/egiz/moazs/SaveResponseToFileSinkTest.java @@ -1,6 +1,6 @@ package at.gv.egiz.moazs; -import at.gv.egiz.moazs.process.SafeResponseToFileSink; +import at.gv.egiz.moazs.process.SaveResponseToFileSink; import at.gv.egiz.moazs.repository.DeliveryRepository; import at.gv.egiz.moazs.scheme.Marshaller; import at.gv.egiz.moazs.scheme.RequestStatusResponse; @@ -27,13 +27,13 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.when; @RunWith(MockitoJUnitRunner.class) -public class SafeResponseToFileSinkTest { +public class SaveResponseToFileSinkTest { - private static final Logger log = LoggerFactory.getLogger(SafeResponseToFileSinkTest.class); + private static final Logger log = LoggerFactory.getLogger(SaveResponseToFileSinkTest.class); - private SafeResponseToFileSink sink; + private SaveResponseToFileSink sink; - private final String root = "./target/tmp/SafeResponseToFileSinkTestOut"; + private final String root = "./target/tmp/SaveResponseToFileSinkTestOut"; @Mock private DeliveryRepository repository; @@ -44,7 +44,7 @@ public class SafeResponseToFileSinkTest { @Before public void setup() { - sink = new SafeResponseToFileSink(marshaller, repository, root); + sink = new SaveResponseToFileSink(marshaller, repository, root); deleteRoot(); } @@ -58,7 +58,7 @@ public class SafeResponseToFileSinkTest { } @Test - public void safeRequestToFiles() { + public void saveRequestToFiles() { var fileContent = "<xml>some content</xml>"; var status = setupMocks(fileContent); |