File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
dsl-report/src/test/java/com/danimaniarqsoft/report Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .danimaniarqsoft .report .mockfactory ;
2+
3+ import java .util .Date ;
4+
5+ import org .mockito .Mockito ;
6+
7+ import com .danimaniarqsoft .report .model .Persona ;
8+
9+ public class MockFactory {
10+
11+ private MockFactory () {}
12+
13+ public static Persona getPersona () {
14+ Persona persona = Mockito .mock (Persona .class );
15+ Mockito .when (persona .getPersona ()).thenReturn ("Mozart" );
16+ Mockito .when (persona .getCantidad ()).thenReturn (23.2d );
17+ Mockito .when (persona .getEdad ()).thenReturn (130 );
18+ Mockito .when (persona .getFecha ()).thenReturn (new Date ());
19+ return persona ;
20+ }
21+ }
Original file line number Diff line number Diff line change 1+ package com .danimaniarqsoft .report .poi .builders ;
2+
3+ import org .testng .annotations .Test ;
4+
5+ public class ModelObjectBuilderTest {
6+
7+ @ Test
8+ public void createModelObject () {
9+ // ModelObjectBuilder.createModelObject(workbook, modelObjectTarget)
10+ throw new RuntimeException ("Test not implemented" );
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments