Skip to content

Commit ad1bbf9

Browse files
committed
refactor: rename tests on Groovy and add Legacy prefix to their names.
The renaming is required as tests on Java and Groovy can't have the same class names. The original names (without Legacy prefix) will be used by new tests on Java. Part of 1246
1 parent 5c2392c commit ad1bbf9

24 files changed

+24
-24
lines changed

src/test/groovy/ru/mystamps/web/common/LocaleUtilsTest.groovy renamed to src/test/groovy/ru/mystamps/web/common/LegacyLocaleUtilsTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import spock.lang.Specification
2121
import spock.lang.Unroll
2222

2323
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
24-
class LocaleUtilsTest extends Specification {
24+
class LegacyLocaleUtilsTest extends Specification {
2525

2626
//
2727
// Tests for getLanguageOrNull()

src/test/groovy/ru/mystamps/web/common/PagerTest.groovy renamed to src/test/groovy/ru/mystamps/web/common/LegacyPagerTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import spock.lang.Specification
2121
import spock.lang.Unroll
2222

2323
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
24-
class PagerTest extends Specification {
24+
class LegacyPagerTest extends Specification {
2525

2626
//
2727
// Tests for Pager()

src/test/groovy/ru/mystamps/web/common/SlugUtilsTest.groovy renamed to src/test/groovy/ru/mystamps/web/common/LegacySlugUtilsTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import spock.lang.Specification
2121
import spock.lang.Unroll
2222

2323
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
24-
class SlugUtilsTest extends Specification {
24+
class LegacySlugUtilsTest extends Specification {
2525

2626
//
2727
// Tests for slugify()

src/test/groovy/ru/mystamps/web/feature/account/UserServiceImplTest.groovy renamed to src/test/groovy/ru/mystamps/web/feature/account/LegacyUserServiceImplTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import ru.mystamps.web.tests.Random
2626
import spock.lang.Specification
2727

2828
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
29-
class UserServiceImplTest extends Specification {
29+
class LegacyUserServiceImplTest extends Specification {
3030

3131
private final UserDao userDao = Mock()
3232
private final UsersActivationService usersActivationService = Mock()

src/test/groovy/ru/mystamps/web/feature/account/UsersActivationServiceImplTest.groovy renamed to src/test/groovy/ru/mystamps/web/feature/account/LegacyUsersActivationServiceImplTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import spock.lang.Specification
2525
import spock.lang.Unroll
2626

2727
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
28-
class UsersActivationServiceImplTest extends Specification {
28+
class LegacyUsersActivationServiceImplTest extends Specification {
2929

3030
private final UsersActivationDao usersActivationDao = Mock()
3131
private final MailService mailService = Mock()

src/test/groovy/ru/mystamps/web/feature/category/CategoryServiceImplTest.groovy renamed to src/test/groovy/ru/mystamps/web/feature/category/LegacyCategoryServiceImplTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import static io.qala.datagen.StringModifier.Impls.oneOf
4141
'NoTabCharacter',
4242
'TrailingWhitespace',
4343
])
44-
class CategoryServiceImplTest extends Specification {
44+
class LegacyCategoryServiceImplTest extends Specification {
4545

4646
private final CategoryDao categoryDao = Mock()
4747
private final CategoryService service = new CategoryServiceImpl(NOPLogger.NOP_LOGGER, categoryDao)

src/test/groovy/ru/mystamps/web/feature/collection/CollectionServiceImplTest.groovy renamed to src/test/groovy/ru/mystamps/web/feature/collection/LegacyCollectionServiceImplTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import static io.qala.datagen.RandomShortApi.positiveLong
3737
'NoTabCharacter',
3838
'TrailingWhitespace',
3939
])
40-
class CollectionServiceImplTest extends Specification {
40+
class LegacyCollectionServiceImplTest extends Specification {
4141

4242
private final CollectionDao collectionDao = Mock()
4343

src/test/groovy/ru/mystamps/web/feature/country/CountryServiceImplTest.groovy renamed to src/test/groovy/ru/mystamps/web/feature/country/LegacyCountryServiceImplTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import static io.qala.datagen.StringModifier.Impls.oneOf
4040
'NoTabCharacter',
4141
'TrailingWhitespace',
4242
])
43-
class CountryServiceImplTest extends Specification {
43+
class LegacyCountryServiceImplTest extends Specification {
4444

4545
private final CountryDao countryDao = Mock()
4646
private final CountryService service = new CountryServiceImpl(NOPLogger.NOP_LOGGER, countryDao)

src/test/groovy/ru/mystamps/web/feature/image/DatabaseImagePersistenceStrategyTest.groovy renamed to src/test/groovy/ru/mystamps/web/feature/image/LegacyDatabaseImagePersistenceStrategyTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import ru.mystamps.web.service.TestObjects
2323
import spock.lang.Specification
2424

2525
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
26-
class DatabaseImagePersistenceStrategyTest extends Specification {
26+
class LegacyDatabaseImagePersistenceStrategyTest extends Specification {
2727

2828
private final ImageDataDao imageDataDao = Mock()
2929
private final MultipartFile multipartFile = Mock()

src/test/groovy/ru/mystamps/web/feature/image/FilesystemImagePersistenceStrategyTest.groovy renamed to src/test/groovy/ru/mystamps/web/feature/image/LegacyFilesystemImagePersistenceStrategyTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import spock.lang.Specification
2525
import java.nio.file.Path
2626

2727
@SuppressWarnings(['ClassJavadoc', 'MethodName', 'NoDef', 'NoTabCharacter', 'TrailingWhitespace'])
28-
class FilesystemImagePersistenceStrategyTest extends Specification {
28+
class LegacyFilesystemImagePersistenceStrategyTest extends Specification {
2929
private static final STORAGE_DIR = File.separator + 'tmp'
3030
private static final PREVIEW_DIR = File.separator + 'tmp'
3131

0 commit comments

Comments
 (0)