RelationNotificationSeqNoTest.java revision 2362
2362N/A * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. 278N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 278N/A * This code is free software; you can redistribute it and/or modify it 278N/A * under the terms of the GNU General Public License version 2 only, as 278N/A * published by the Free Software Foundation. 278N/A * This code is distributed in the hope that it will be useful, but WITHOUT 278N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 278N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 278N/A * version 2 for more details (a copy is included in the LICENSE file that 278N/A * accompanied this code). 278N/A * You should have received a copy of the GNU General Public License version 278N/A * 2 along with this work; if not, write to the Free Software Foundation, 278N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 278N/A * @summary Test sequence numbers in RelationService notifications. 278N/A * @author Eamonn McManus 278N/A * Bug 6701459 is for a synchronization problem that is very unlikely to occur 278N/A * in practice and it would be very hard to test it. Instead we just check that 278N/A * the fix has not introduced any obviously-wrong behavior in the sequence 278N/A "TEST FAILED: expected seqNo " + (
seqNo +
1) +
"; got " +
278N/A "with contiguous sequence numbers");