rework following Saajan Nagendra's review

This commit is contained in:
HARDEMAN Sebastien 2022-12-07 15:53:34 +01:00
parent 28f0b329e7
commit 9a42f64454
8 changed files with 18 additions and 9 deletions

View File

@ -14,6 +14,11 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<properties>
<commons-lang3.version>3.12.0</commons-lang3.version>
<reflections.version>0.10.2</reflections.version>
</properties>
<build>
<finalName>core-java-lang-5</finalName>
@ -29,13 +34,13 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.10.2</version>
<version>${reflections.version}</version>
</dependency>
</dependencies>

View File

@ -1,4 +1,4 @@
package com.baeldung.checkInterface;
package com.baeldung.checkinterface;
public class ChildClass1 implements ChildInterface1 {

View File

@ -1,4 +1,4 @@
package com.baeldung.checkInterface;
package com.baeldung.checkinterface;
public class ChildClass2 implements ChildInterface2 {

View File

@ -1,4 +1,4 @@
package com.baeldung.checkInterface;
package com.baeldung.checkinterface;
public interface ChildInterface1 extends MasterInterface {

View File

@ -1,4 +1,4 @@
package com.baeldung.checkInterface;
package com.baeldung.checkinterface;
public interface ChildInterface2 extends MasterInterface {

View File

@ -1,4 +1,4 @@
package com.baeldung.checkInterface;
package com.baeldung.checkinterface;
public class MasterClass implements MasterInterface {

View File

@ -1,4 +1,4 @@
package com.baeldung.checkInterface;
package com.baeldung.checkinterface;
public interface MasterInterface {

View File

@ -1,4 +1,4 @@
package com.baeldung.checkInterface;
package com.baeldung.checkinterface;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
@ -13,6 +13,10 @@ import org.junit.jupiter.api.Test;
import org.reflections.ReflectionUtils;
import org.reflections.Reflections;
import com.baeldung.checkinterface.ChildClass2;
import com.baeldung.checkinterface.ChildInterface2;
import com.baeldung.checkinterface.MasterInterface;
public class CheckInterfaceUnitTest {
protected static Reflections reflections;