Skip to content

Commit afa4518

Browse files
committed
fix: fix templateview mockito tests
1 parent ed4a756 commit afa4518

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

templateview/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</dependency>
4242
<dependency>
4343
<groupId>org.mockito</groupId>
44-
<artifactId>mockito-inline</artifactId>
44+
<artifactId>mockito-core</artifactId>
4545
<scope>test</scope>
4646
</dependency>
4747
</dependencies>

templateview/src/test/java/com/iluwatar/templateview/ContactPageViewTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
class ContactPageViewTest {
3232

3333
@Test
34-
@Disabled
3534
void testRenderDynamicContent() {
3635
// Create a spy for ContactPageView
3736
ContactPageView contactPage = spy(ContactPageView.class);

templateview/src/test/java/com/iluwatar/templateview/HomePageViewTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
class HomePageViewTest {
3232

3333
@Test
34-
@Disabled
3534
void testRenderDynamicContent() {
3635
// Create a spy for HomePageView
3736
HomePageView homePage = spy(HomePageView.class);

templateview/src/test/java/com/iluwatar/templateview/TemplateViewTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
class TemplateViewTest {
3232

3333
@Test
34-
@Disabled
3534
void testRenderHomePage() {
3635
// Create a spy for HomePageView
3736
TemplateView homePage = spy(HomePageView.class);
@@ -46,7 +45,6 @@ void testRenderHomePage() {
4645
}
4746

4847
@Test
49-
@Disabled
5048
void testRenderContactPage() {
5149
// Create a spy for ContactPageView
5250
TemplateView contactPage = spy(ContactPageView.class);

0 commit comments

Comments
 (0)