Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
This commit is contained in:
parent
f6d43975fa
commit
43e7ca515a
@ -23,11 +23,14 @@
|
|||||||
|
|
||||||
package com.iluwatar.filterer;
|
package com.iluwatar.filterer;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
class AppTest {
|
class AppTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void shouldLaunchApp() {
|
void shouldLaunchApp() {
|
||||||
App.main(new String[]{});
|
assertDoesNotThrow(() -> App.main(new String[]{}));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -23,16 +23,19 @@
|
|||||||
|
|
||||||
package com.iluwatar.monad;
|
package com.iluwatar.monad;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Application Test
|
* Application Test
|
||||||
*/
|
*/
|
||||||
public class AppTest {
|
|
||||||
|
class AppTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testMain() {
|
void shouldExecuteApplicationWithoutException() {
|
||||||
App.main(new String[]{});
|
assertDoesNotThrow(() -> App.main(new String[]{}));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -23,16 +23,19 @@
|
|||||||
|
|
||||||
package com.iluwatar.monostate;
|
package com.iluwatar.monostate;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Application Test Entry
|
* Application Test Entry
|
||||||
*/
|
*/
|
||||||
public class AppTest {
|
|
||||||
|
class AppTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testMain() {
|
void shouldExecuteApplicationWithoutException() {
|
||||||
App.main(new String[]{});
|
assertDoesNotThrow(() -> App.main(new String[]{}));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -23,15 +23,18 @@
|
|||||||
|
|
||||||
package com.iluwatar.multiton;
|
package com.iluwatar.multiton;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Application test
|
* Test if the application starts without throwing an exception.
|
||||||
*/
|
*/
|
||||||
public class AppTest {
|
|
||||||
|
class AppTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void test() {
|
void shouldExecuteApplicationWithoutException() {
|
||||||
App.main(new String[]{});
|
assertDoesNotThrow(() -> App.main(new String[]{}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
package com.iluwatar.object.pool;
|
package com.iluwatar.object.pool;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -34,6 +36,6 @@ class AppTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void shouldExecuteApplicationWithoutException() {
|
void shouldExecuteApplicationWithoutException() {
|
||||||
App.main(new String[]{});
|
assertDoesNotThrow(() -> App.main(new String[]{}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,19 +23,16 @@
|
|||||||
|
|
||||||
package com.iluwatar.parameter.object;
|
package com.iluwatar.parameter.object;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Application test
|
* Application test
|
||||||
*/
|
*/
|
||||||
class AppTest {
|
class AppTest {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(AppTest.class);
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void shouldExecuteApplicationWithoutException() {
|
void shouldExecuteApplicationWithoutException() {
|
||||||
App.main(new String[]{});
|
assertDoesNotThrow(() -> App.main(new String[]{}));
|
||||||
LOGGER.info("Executed successfully without exception.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,15 +23,17 @@
|
|||||||
|
|
||||||
package com.iluwatar.saga.orchestration;
|
package com.iluwatar.saga.orchestration;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* empty test
|
* Test if the application starts without throwing an exception.
|
||||||
*/
|
*/
|
||||||
class SagaApplicationTest {
|
class SagaApplicationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void mainTest() {
|
void shouldExecuteApplicationWithoutException() {
|
||||||
SagaApplication.main(new String[]{});
|
assertDoesNotThrow(() -> SagaApplication.main(new String[]{}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user