From 83dc6080af2a6e00e6aa383af5fe6d3382eea43c Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Sun, 1 Oct 2006 19:41:09 +0000 Subject: Fix broken test case. --- .../carbonado/synthetic/TestSyntheticStorableBuilders.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/test/java/com/amazon/carbonado/synthetic') 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); -- cgit v1.2.3