summaryrefslogtreecommitdiff
path: root/src/test/java/com/amazon/carbonado
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/amazon/carbonado')
-rw-r--r--src/test/java/com/amazon/carbonado/synthetic/TestSyntheticStorableBuilders.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/com/amazon/carbonado/synthetic/TestSyntheticStorableBuilders.java b/src/test/java/com/amazon/carbonado/synthetic/TestSyntheticStorableBuilders.java
index faace6d..0b93822 100644
--- a/src/test/java/com/amazon/carbonado/synthetic/TestSyntheticStorableBuilders.java
+++ b/src/test/java/com/amazon/carbonado/synthetic/TestSyntheticStorableBuilders.java
@@ -87,6 +87,9 @@ public class TestSyntheticStorableBuilders extends TestCase {
public static final String TEXT = '@'
+ TextAdapter.class.toString().substring(10) + "(charset=UTF-8, altCharsets=[])";
+ public static final String TEXT_2 = '@'
+ + TextAdapter.class.toString().substring(10) + "(altCharsets=[], charset=UTF-8)";
+
private static Set s_storableInterfaceMethods = new HashSet();
public static final TestDef[] TESTS = new TestDef[] {
@@ -471,6 +474,12 @@ public class TestSyntheticStorableBuilders extends TestCase {
found = true;
break;
}
+ // Special case to handle arbitrary ordering of
+ // annotation parameters.
+ if (candidate == TEXT && a.toString().startsWith(TEXT_2)) {
+ found = true;
+ break;
+ }
}
assertTrue(test.mTestMoniker + ':' + m.getName()
+ " -- unexpected annotation " + a, found);