1414public class CustomerRowMapperTest {
1515
1616@ Test
17- <<<<<<< HEAD
18- public void mapRowTest () throws Exception {
19- CustomerRowMapper customerRowMapper = new CustomerRowMapper ();
20- ResultSet rs = Mockito .mock (ResultSet .class );
21- Long id = new Long (1 );
22- =======
2317public void customerRowMapperTest () throws Exception {
2418CustomerRowMapper customerRowMapper = new CustomerRowMapper ();
2519Long id = new Long (1 );
2620ResultSet rs = Mockito .mock (ResultSet .class );
27- >>>>>>> Removing snapshot , adding untracked directory .
2821Mockito .when (rs .getLong ("id" )).thenReturn (id );
2922Mockito .when (rs .getString ("name" )).thenReturn ("Customer Name" );
3023Mockito .when (rs .getString ("address1" )).thenReturn ("Address 1" );
3124Mockito .when (rs .getString ("address2" )).thenReturn ("Address 2" );
3225Mockito .when (rs .getString ("city" )).thenReturn ("City" );
3326Mockito .when (rs .getString ("state" )).thenReturn ("State" );
34- Mockito .when (rs .getString ("zip" )).thenReturn ("Zip" );
35- <<<<<<< HEAD
36- Customer customer = customerRowMapper .mapRow (rs , 1 );
37- =======
38-
27+ Mockito .when (rs .getString ("zip" )).thenReturn ("Zip" );
3928Customer customer = customerRowMapper .mapRow (rs , 1 );
40-
41- >>>>>>> Removing snapshot , adding untracked directory .
4229assertEquals (customer .getId (), id );
4330assertEquals (customer .getName (), "Customer Name" );
4431assertEquals (customer .getAddress1 (), "Address 1" );
@@ -47,9 +34,5 @@ public void customerRowMapperTest() throws Exception {
4734assertEquals (customer .getState (), "State" );
4835assertEquals (customer .getZip (), "Zip" );
4936}
50- <<<<<<< HEAD
51- }
52- =======
5337
54- }
55- >>>>>>> Removing snapshot , adding untracked directory .
38+ }
0 commit comments