Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue
class ApacheLicenseResourceTransformerTest extends TransformerTestSupport<ApacheLicenseResourceTransformer> {

static {
/*
* NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
* choice to test for improper case-less string comparisions.
*/
Locale.setDefault(new Locale("tr"))
setupTurkishLocale()
}

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ class ApacheNoticeResourceTransformerTest extends TransformerTestSupport<ApacheN
private static ShadowStats stats

static {
/*
* NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
* choice to test for improper case-less string comparisions.
*/
Locale.setDefault(new Locale("tr"))
setupTurkishLocale()
}

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue
*/
class AppendingTransformerTest extends TransformerTestSupport<AppendingTransformer> {

static
{
/*
* NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
* choice to test for improper case-less string comparisions.
*/
Locale.setDefault(new Locale("tr"))
static {
setupTurkishLocale()
}

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@ abstract class TransformerTestSupport<T extends Transformer> {
protected static FileTreeElement getFileElement(String path) {
return new DefaultFileTreeElement(null, RelativePath.parse(true, path), null, null)
}

/**
* NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
* choice to test for improper case-less string comparisons.
*/
protected static setupTurkishLocale() {
Locale.setDefault(new Locale("tr"))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue
class XmlAppendingTransformerTest extends TransformerTestSupport<XmlAppendingTransformer> {

static {
/*
* NOTE: The Turkish locale has an usual case transformation for the letters "I" and "i", making it a prime
* choice to test for improper case-less string comparisons.
*/
Locale.setDefault(new Locale("tr"))
setupTurkishLocale()
}

@BeforeEach
Expand Down