-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a81698
commit 74f8a80
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
dsl-report/src/test/java/com/danimaniarqsoft/report/mockfactory/MockFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.danimaniarqsoft.report.mockfactory; | ||
|
||
import java.util.Date; | ||
|
||
import org.mockito.Mockito; | ||
|
||
import com.danimaniarqsoft.report.model.Persona; | ||
|
||
public class MockFactory { | ||
|
||
private MockFactory() {} | ||
|
||
public static Persona getPersona() { | ||
Persona persona = Mockito.mock(Persona.class); | ||
Mockito.when(persona.getPersona()).thenReturn("Mozart"); | ||
Mockito.when(persona.getCantidad()).thenReturn(23.2d); | ||
Mockito.when(persona.getEdad()).thenReturn(130); | ||
Mockito.when(persona.getFecha()).thenReturn(new Date()); | ||
return persona; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
dsl-report/src/test/java/com/danimaniarqsoft/report/poi/builders/ModelObjectBuilderTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.danimaniarqsoft.report.poi.builders; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
public class ModelObjectBuilderTest { | ||
|
||
@Test | ||
public void createModelObject() { | ||
// ModelObjectBuilder.createModelObject(workbook, modelObjectTarget) | ||
throw new RuntimeException("Test not implemented"); | ||
} | ||
} |