diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-10-01 19:41:09 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-10-01 19:41:09 +0000 |
commit | 83dc6080af2a6e00e6aa383af5fe6d3382eea43c (patch) | |
tree | 07ed7b17972587bbae8e1f6f9a359c87a5973007 /src/test/java | |
parent | 3afbf1015eef0618c5e25f8daaca75459b199141 (diff) |
Fix broken test case.
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/com/amazon/carbonado/synthetic/TestSyntheticStorableBuilders.java | 9 |
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); |