Skip to content

Commit 74f8a80

Browse files
MOdel Builder for test
1 parent 9a81698 commit 74f8a80

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)