mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-08 08:20:15 +00:00
Upon reviewer's request:
(FIX) Deleted .puml file (no longer required or used) (FIX) Removed @since annotations (they add noise)
This commit is contained in:
@@ -32,13 +32,10 @@ import org.junit.Test;
|
||||
* Unit tests for {@link FindCustomer}.
|
||||
*
|
||||
* @author George Aristy (george.aristy@gmail.com)
|
||||
* @since 1.18.0
|
||||
*/
|
||||
public class FindCustomerTest {
|
||||
/**
|
||||
* Returns the given result with no exceptions.
|
||||
*
|
||||
* @since 1.18.0
|
||||
*/
|
||||
@Test
|
||||
public void noExceptions() throws Exception {
|
||||
@@ -52,7 +49,6 @@ public class FindCustomerTest {
|
||||
* Throws the given exception.
|
||||
*
|
||||
* @throws Exception the expected exception
|
||||
* @since 1.18.0
|
||||
*/
|
||||
@Test(expected = BusinessException.class)
|
||||
public void oneException() throws Exception {
|
||||
@@ -63,7 +59,6 @@ public class FindCustomerTest {
|
||||
* Should first throw the given exceptions, then return the given result.
|
||||
*
|
||||
* @throws Exception not an expected exception
|
||||
* @since 1.18.0
|
||||
*/
|
||||
@Test
|
||||
public void resultAfterExceptions() throws Exception {
|
||||
|
||||
@@ -33,13 +33,10 @@ import static org.junit.Assert.*;
|
||||
* Unit tests for {@link Retry}.
|
||||
*
|
||||
* @author George Aristy (george.aristy@gmail.com)
|
||||
* @since 1.18.0
|
||||
*/
|
||||
public class RetryTest {
|
||||
/**
|
||||
* Should contain all errors thrown.
|
||||
*
|
||||
* @since 1.18.0
|
||||
*/
|
||||
@Test
|
||||
public void errors() throws Exception {
|
||||
@@ -64,8 +61,6 @@ public class RetryTest {
|
||||
/**
|
||||
* No exceptions will be ignored, hence final number of attempts should be 1 even if we're asking
|
||||
* it to attempt twice.
|
||||
*
|
||||
* @since 1.18.0
|
||||
*/
|
||||
@Test
|
||||
public void attempts() {
|
||||
@@ -90,8 +85,6 @@ public class RetryTest {
|
||||
/**
|
||||
* Final number of attempts should be equal to the number of attempts asked because we are
|
||||
* asking it to ignore the exception that will be thrown.
|
||||
*
|
||||
* @since 1.18.0
|
||||
*/
|
||||
@Test
|
||||
public void ignore() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user