Lines Matching defs:csn1
43 private static final CSN csn1 = new CSN(1, 2, 3);
62 String cookie = "o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:";
68 { "o=test1:" + csn1 + ";o=test2:" + csn2 + ";;o=test6:", ":;o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:;" },
84 { "o=test1:" + csn1 + ";" },
85 { "o=test1:" + csn1 + ";o=test2:" + csn2 + ";" },
86 { "o=test1:" + csn1 + ";o=test2:" + csn2 + ";o=test6:;" },
102 assertTrue(state.update(dn1, csn1));
106 assertFalse(state.update(dn1, csn1));
150 assertTrue(state2.update(dn1, csn1));
166 assertTrue(state.update(dn1, csn1));
184 assertFalse(state.removeCSN(dn3, csn1));
185 assertSame(csn1, state.getCSN(dn1, csn1.getServerId()));
186 assertSame(csn1, state.getCSN(dn2, csn1.getServerId()));
190 assertSame(csn1, state.getCSN(dn1, csn1.getServerId()));
191 assertSame(csn1, state.getCSN(dn2, csn1.getServerId()));
194 assertTrue(state.removeCSN(dn2, csn1));
195 assertSame(csn1, state.getCSN(dn1, csn1.getServerId()));
196 assertNull(state.getCSN(dn2, csn1.getServerId()));
203 assertTrue(lastAliveCSNs.update(dn1, csn1));
204 assertTrue(lastAliveCSNs.update(dn2, csn1));
213 assertEquals(lastAliveCSNs.getOldestCSNExcluding(null), Pair.of(dn1, csn1));
222 assertEquals(lastAliveCSNs.getOldestCSNExcluding(excluded), Pair.of(dn1, csn1));
231 excluded.update(dn1, csn1);
233 assertEquals(lastAliveCSNs.getOldestCSNExcluding(excluded), Pair.of(dn2, csn1));
242 excluded.update(dn1, csn1);
244 assertEquals(olderThanCSN1.getServerId(), csn1.getServerId());
245 assertTrue(olderThanCSN1.isOlderThan(csn1));
248 assertEquals(lastAliveCSNs.getOldestCSNExcluding(excluded), Pair.of(dn2, csn1));
257 excluded.update(dn1, csn1);
259 assertEquals(newerThanCSN1.getServerId(), csn1.getServerId());
260 assertTrue(newerThanCSN1.isNewerThan(csn1));
263 assertEquals(lastAliveCSNs.getOldestCSNExcluding(excluded), Pair.of(dn2, csn1));