Skip to content

Commit

Permalink
MOdel Builder for test
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaniarqsoft committed Jan 20, 2016
1 parent 9a81698 commit 74f8a80
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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;
}
}
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");
}
}

0 comments on commit 74f8a80

Please sign in to comment.