mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-15 16:24:24 +00:00
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
@@ -37,13 +37,13 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class ServiceLocatorTest {
|
||||
class ServiceLocatorTest {
|
||||
|
||||
/**
|
||||
* Verify if we just receive 'null' when requesting a non-existing service
|
||||
*/
|
||||
@Test
|
||||
public void testGetNonExistentService() {
|
||||
void testGetNonExistentService() {
|
||||
assertNull(ServiceLocator.getService("fantastic/unicorn/service"));
|
||||
assertNull(ServiceLocator.getService("another/fantastic/unicorn/service"));
|
||||
}
|
||||
@@ -52,7 +52,7 @@ public class ServiceLocatorTest {
|
||||
* Verify if we get the same cached instance when requesting the same service twice
|
||||
*/
|
||||
@Test
|
||||
public void testServiceCache() {
|
||||
void testServiceCache() {
|
||||
final var serviceNames = List.of("jndi/serviceA", "jndi/serviceB");
|
||||
|
||||
for (final var serviceName : serviceNames) {
|
||||
|
||||
Reference in New Issue
Block a user