fix: fix templateview mockito tests

This commit is contained in:
Ilkka Seppälä
2025-03-25 20:53:51 +02:00
parent ed4a756b62
commit afa4518dcf
4 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId> <artifactId>mockito-core</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@@ -31,7 +31,6 @@ import static org.mockito.Mockito.*;
class ContactPageViewTest { class ContactPageViewTest {
@Test @Test
@Disabled
void testRenderDynamicContent() { void testRenderDynamicContent() {
// Create a spy for ContactPageView // Create a spy for ContactPageView
ContactPageView contactPage = spy(ContactPageView.class); ContactPageView contactPage = spy(ContactPageView.class);
@@ -31,7 +31,6 @@ import static org.mockito.Mockito.*;
class HomePageViewTest { class HomePageViewTest {
@Test @Test
@Disabled
void testRenderDynamicContent() { void testRenderDynamicContent() {
// Create a spy for HomePageView // Create a spy for HomePageView
HomePageView homePage = spy(HomePageView.class); HomePageView homePage = spy(HomePageView.class);
@@ -31,7 +31,6 @@ import static org.mockito.Mockito.*;
class TemplateViewTest { class TemplateViewTest {
@Test @Test
@Disabled
void testRenderHomePage() { void testRenderHomePage() {
// Create a spy for HomePageView // Create a spy for HomePageView
TemplateView homePage = spy(HomePageView.class); TemplateView homePage = spy(HomePageView.class);
@@ -46,7 +45,6 @@ class TemplateViewTest {
} }
@Test @Test
@Disabled
void testRenderContactPage() { void testRenderContactPage() {
// Create a spy for ContactPageView // Create a spy for ContactPageView
TemplateView contactPage = spy(ContactPageView.class); TemplateView contactPage = spy(ContactPageView.class);