Sort method names
@@ -39,26 +39,26 @@ import net.bytebuddy.matcher.ElementMatcher.Junction;
class SoftProxies {
- private static final Junction<MethodDescription> METHODS_CHANGING_THE_OBJECT_UNDER_TEST = methodsNamed("extracting").or(named("filteredOn"))
- .or(named("filteredOnNull"))
- .or(named("filteredOnAssertions"))
- .or(named("map"))
+ private static final Junction<MethodDescription> METHODS_CHANGING_THE_OBJECT_UNDER_TEST = methodsNamed("asInstanceOf").or(named("asList"))
.or(named("asString"))
- .or(named("asList"))
- .or(named("size"))
- .or(named("toAssert"))
- .or(named("flatMap"))
- .or(named("extractingResultOf"))
- .or(named("flatExtracting"))
- .or(named("usingRecursiveComparison"))
+ .or(named("extracting"))
.or(named("extractingByKey"))
.or(named("extractingByKeys"))
.or(named("extractingFromEntries"))
+ .or(named("extractingResultOf"))
+ .or(named("filteredOn"))
+ .or(named("filteredOnAssertions"))
+ .or(named("filteredOnNull"))
+ .or(named("flatExtracting"))
+ .or(named("flatMap"))
.or(named("get"))
.or(named("getCause"))
.or(named("getRootCause"))
- .or(named("asInstanceOf"))
- .or(named("succeedsWithin"));
+ .or(named("map"))
+ .or(named("size"))
+ .or(named("succeedsWithin"))
+ .or(named("toAssert"))
+ .or(named("usingRecursiveComparison"));
private static final Junction<MethodDescription> METHODS_NOT_TO_PROXY = methodsNamed("as").or(named("clone"))
.or(named("describedAs"))
@@ -68,21 +68,21 @@ class SoftProxies {
.or(named("inHexadecimal"))
.or(named("newAbstractIterableAssert"))
.or(named("newObjectArrayAssert"))
- .or(named("removeCustomAssertRelatedElementsFromStackTraceIfNeeded"))
.or(named("overridingErrorMessage"))
+ .or(named("removeCustomAssertRelatedElementsFromStackTraceIfNeeded"))
+ .or(named("succeedsWithin"))
.or(named("usingComparator"))
.or(named("usingDefaultComparator"))
.or(named("usingElementComparator"))
+ .or(named("withAssertionInfo"))
+ .or(named("withAssertionState"))
.or(named("withComparatorsForElementPropertyOrFieldNames"))
.or(named("withComparatorsForElementPropertyOrFieldTypes"))
- .or(named("withIterables"))
.or(named("withFailMessage"))
- .or(named("withAssertionInfo"))
- .or(named("withAssertionState"))
+ .or(named("withIterables"))
.or(named("withRepresentation"))
- .or(named("withTypeComparators"))
.or(named("withThreadDumpOnError"))
- .or(named("succeedsWithin"));
+ .or(named("withTypeComparators"));
private static final ByteBuddy BYTE_BUDDY = new ByteBuddy().with(new AuxiliaryType.NamingStrategy.SuffixingRandom("AssertJ$SoftProxies"))
.with(TypeValidation.DISABLED);
