File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/ru/mystamps/web/service Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public class CountryServiceTest {
64
64
@ Before
65
65
public void setUp () {
66
66
form = new AddCountryForm ();
67
- form .setName (TEST_COUNTRY_NAME );
67
+ form .setName ("Any country name" );
68
68
69
69
user = UserServiceTest .getValidUser ();
70
70
@@ -193,16 +193,16 @@ public void findByNameShouldCallDao() {
193
193
Country expectedCountry = getCountry ();
194
194
when (countryDao .findByName (anyString ())).thenReturn (expectedCountry );
195
195
196
- Country country = service .findByName (TEST_COUNTRY_NAME );
196
+ Country country = service .findByName ("Any name here" );
197
197
198
198
assertThat (country ).isEqualTo (expectedCountry );
199
199
}
200
200
201
201
@ Test
202
202
public void findByNameShouldPassCountryNameToDao () {
203
- service .findByName (TEST_COUNTRY_NAME );
203
+ service .findByName ("Canada" );
204
204
205
- verify (countryDao ).findByName (eq (TEST_COUNTRY_NAME ));
205
+ verify (countryDao ).findByName (eq ("Canada" ));
206
206
}
207
207
208
208
static Country getCountry () {
You can’t perform that action at this time.
0 commit comments