Lines Matching refs:Sample
29 enum Sample {
33 Sample larry = Sample.LARRY;
35 Sample moe = Sample.MOE;
60 assertTrue(0 < Sample.MOE.compareTo(Sample.LARRY));
61 assertEquals(0, Sample.MOE.compareTo(Sample.MOE));
62 assertTrue(0 > Sample.MOE.compareTo(Sample.CURLY));
64 Sample.MOE.compareTo((Sample)null);
76 assertTrue(moe.equals(Sample.MOE));
77 assertFalse(Sample.LARRY.equals(Sample.CURLY));
78 assertTrue(Sample.LARRY.equals(larry));
79 assertFalse(Sample.CURLY.equals(null));
86 assertEquals(Sample.class, moe.getDeclaringClass());
109 assertEquals(2, Sample.CURLY.ordinal());
123 assertSame(Sample.CURLY, Sample.valueOf("CURLY"));
124 assertSame(Sample.LARRY, Sample.valueOf("LARRY"));
125 assertSame(moe, Sample.valueOf("MOE"));
127 Sample.valueOf("non-existant");
133 Sample.valueOf(null);
142 Sample s = Enum.valueOf(Sample.class, "CURLY");
143 assertSame(s, Sample.CURLY);
144 s = Enum.valueOf(Sample.class, "LARRY");
146 s = Enum.valueOf(Sample.class, "MOE");
155 Enum.valueOf((Class<Sample>)null, "a string");
163 Enum.valueOf(Sample.class, null);
171 Enum.valueOf((Class<Sample>)null, (String)null);
184 Sample[] myValues = Sample.values();
187 assertEquals(Sample.LARRY, myValues[0]);
188 assertEquals(Sample.MOE, myValues[1]);
189 assertEquals(Sample.CURLY, myValues[2]);
227 Object[] testCases = { enumColorMap, Sample.CURLY };
256 Object[] testCases = { Sample.CURLY, new MockEnum(),