-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort entries of RefasterRuleCollectionTestCase#elidedTypesAndStaticIm…
…ports
- Loading branch information
mohamedsamehsalah
committed
Oct 21, 2023
1 parent
2ff3095
commit 505870a
Showing
6 changed files
with
149 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...a/tech/picnic/errorprone/refaster/test/NonSortedElidedTypesAndStaticImportsTestRules.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package tech.picnic.errorprone.refaster.test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||
|
||
import com.google.common.collect.ImmutableSet; | ||
import com.google.common.collect.Iterables; | ||
import com.google.common.collect.Lists; | ||
|
||
/** | ||
* Refaster rule collection to validate reporting of unsorted arguments of {@link | ||
* RefasterRuleCollectionTestCase#elidedTypesAndStaticImports} in test classes. | ||
*/ | ||
final class NonSortedElidedTypesAndStaticImportsTestRules | ||
implements RefasterRuleCollectionTestCase { | ||
private NonSortedElidedTypesAndStaticImportsTestRules() {} | ||
|
||
@Override | ||
public ImmutableSet<Object> elidedTypesAndStaticImports() { | ||
return ImmutableSet.of(Lists.class, assertDoesNotThrow(() -> null), Iterables.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...cnic/errorprone/refaster/test/NonSortedElidedTypesAndStaticImportsTestRulesTestInput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package tech.picnic.errorprone.refaster.test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||
|
||
import com.google.common.collect.ImmutableSet; | ||
import com.google.common.collect.Iterables; | ||
import com.google.common.collect.Lists; | ||
|
||
/** | ||
* Refaster rule collection to validate reporting of unsorted arguments of {@link | ||
* RefasterRuleCollectionTestCase#elidedTypesAndStaticImports} in test classes. | ||
*/ | ||
final class NonSortedElidedTypesAndStaticImportsTestRulesTest | ||
implements RefasterRuleCollectionTestCase { | ||
@Override | ||
public ImmutableSet<Object> elidedTypesAndStaticImports() { | ||
return ImmutableSet.of(Lists.class, assertDoesNotThrow(() -> null), Iterables.class); | ||
} | ||
} | ||
|
||
// This is a comment to appease Checkstyle. | ||
; |
23 changes: 23 additions & 0 deletions
23
...nic/errorprone/refaster/test/NonSortedElidedTypesAndStaticImportsTestRulesTestOutput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package tech.picnic.errorprone.refaster.test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||
|
||
import com.google.common.collect.ImmutableSet; | ||
import com.google.common.collect.Iterables; | ||
import com.google.common.collect.Lists; | ||
|
||
/** | ||
* Refaster rule collection to validate reporting of unsorted arguments of {@link | ||
* RefasterRuleCollectionTestCase#elidedTypesAndStaticImports} in test classes. | ||
*/ | ||
final class NonSortedElidedTypesAndStaticImportsTestRulesTest | ||
implements RefasterRuleCollectionTestCase { | ||
@Override | ||
public ImmutableSet<Object> elidedTypesAndStaticImports() { | ||
return ImmutableSet.of(assertDoesNotThrow(() -> null), Iterables.class, Lists.class); | ||
} | ||
} | ||
|
||
// This is a comment to appease Checkstyle. | ||
/* ERROR: Unexpected token. */ | ||
; |