mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-16 06:23:11 +00:00
fix: fix templateview mockito tests
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user