1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir package test.java_uno.equals; 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir import com.sun.star.bridge.XBridge; 31*cdf0e10cSrcweir import com.sun.star.bridge.XBridgeFactory; 32*cdf0e10cSrcweir import com.sun.star.bridge.XInstanceProvider; 33*cdf0e10cSrcweir import com.sun.star.comp.helper.Bootstrap; 34*cdf0e10cSrcweir import com.sun.star.connection.Acceptor; 35*cdf0e10cSrcweir import com.sun.star.connection.XAcceptor; 36*cdf0e10cSrcweir import com.sun.star.connection.XConnection; 37*cdf0e10cSrcweir import com.sun.star.lang.XMultiComponentFactory; 38*cdf0e10cSrcweir import com.sun.star.lang.XSingleComponentFactory; 39*cdf0e10cSrcweir import com.sun.star.lib.TestBed; 40*cdf0e10cSrcweir import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; 41*cdf0e10cSrcweir import com.sun.star.lib.uno.typeinfo.TypeInfo; 42*cdf0e10cSrcweir import com.sun.star.loader.XImplementationLoader; 43*cdf0e10cSrcweir import com.sun.star.uno.UnoRuntime; 44*cdf0e10cSrcweir import com.sun.star.uno.XComponentContext; 45*cdf0e10cSrcweir import com.sun.star.uno.XInterface; 46*cdf0e10cSrcweir import java.io.File; 47*cdf0e10cSrcweir import java.net.MalformedURLException; 48*cdf0e10cSrcweir import java.util.HashMap; 49*cdf0e10cSrcweir import java.util.Hashtable; 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir // In this test scenario, the Java server (see implementation of method 52*cdf0e10cSrcweir // notifyAccepting) has a remote bridge to the Java client and a local JNI 53*cdf0e10cSrcweir // bridge to a C++ com.sun.star.test.bridges.testequals.impl service. The C++ 54*cdf0e10cSrcweir // service and the Java client are also connected via a remote bridge. 55*cdf0e10cSrcweir // 56*cdf0e10cSrcweir // The Java server gets two objects (INSTANCE1, INSTANCE2), once directly from 57*cdf0e10cSrcweir // the Java client via the remote bridge (proxies test1A, test2A), and once 58*cdf0e10cSrcweir // through the C++ service via the JNI bridge (proxies test1B, test2B). 59*cdf0e10cSrcweir // Exhaustive tests on the proxies' equals and hashCode methods are done. 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir public final class TestEquals { 62*cdf0e10cSrcweir // args[0] must be a file system path to a types.rdb, 63*cdf0e10cSrcweir // args[1] must be a file system path to a services.rdb 64*cdf0e10cSrcweir public static void main(String[] args) throws Exception { 65*cdf0e10cSrcweir TestBed t = new TestBed(); 66*cdf0e10cSrcweir boolean success = t.execute( 67*cdf0e10cSrcweir new Provider(t, toFileUrl(args[0]), toFileUrl(args[1])), true, 68*cdf0e10cSrcweir Client.class, 0); 69*cdf0e10cSrcweir System.out.println("success? " + success); 70*cdf0e10cSrcweir System.exit(success ? 0 : 1); 71*cdf0e10cSrcweir } 72*cdf0e10cSrcweir 73*cdf0e10cSrcweir private static String toFileUrl(String path) throws MalformedURLException { 74*cdf0e10cSrcweir String url = new File(path).toURL().toString(); 75*cdf0e10cSrcweir String prefix = "file:/"; 76*cdf0e10cSrcweir if (url.startsWith(prefix) 77*cdf0e10cSrcweir && (url.length() == prefix.length() 78*cdf0e10cSrcweir || url.charAt(prefix.length()) != '/')) { 79*cdf0e10cSrcweir url = url.substring(0, prefix.length()) + "//" 80*cdf0e10cSrcweir + url.substring(prefix.length()); 81*cdf0e10cSrcweir } 82*cdf0e10cSrcweir return url; 83*cdf0e10cSrcweir } 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir public static final class Client extends TestBed.Client { 86*cdf0e10cSrcweir public static void main(String[] args) { 87*cdf0e10cSrcweir new Client().execute(); 88*cdf0e10cSrcweir } 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir protected boolean run(XComponentContext context) throws Throwable { 91*cdf0e10cSrcweir XTestFrame f = UnoRuntime.queryInterface( 92*cdf0e10cSrcweir XTestFrame.class, getBridge(context).getInstance("TestFrame")); 93*cdf0e10cSrcweir XAcceptor acceptor = Acceptor.create(context); 94*cdf0e10cSrcweir XBridgeFactory factory = UnoRuntime.queryInterface( 95*cdf0e10cSrcweir XBridgeFactory.class, 96*cdf0e10cSrcweir context.getServiceManager().createInstanceWithContext( 97*cdf0e10cSrcweir "com.sun.star.bridge.BridgeFactory", context)); 98*cdf0e10cSrcweir System.out.println("Client, 2nd connection: Accepting..."); 99*cdf0e10cSrcweir XInstanceProvider prov = new Provider(); 100*cdf0e10cSrcweir f.notifyAccepting(new Done(), prov.getInstance(INSTANCE1), 101*cdf0e10cSrcweir prov.getInstance(INSTANCE2)); 102*cdf0e10cSrcweir XConnection connection = acceptor.accept(CONNECTION_DESCRIPTION); 103*cdf0e10cSrcweir System.out.println("Client, 2nd connection: ...connected..."); 104*cdf0e10cSrcweir XBridge bridge2 = factory.createBridge( 105*cdf0e10cSrcweir "", PROTOCOL_DESCRIPTION, connection, prov); 106*cdf0e10cSrcweir System.out.println("Client, 2nd connection: ...bridged."); 107*cdf0e10cSrcweir synchronized (lock) { 108*cdf0e10cSrcweir while (!done) { 109*cdf0e10cSrcweir lock.wait(); 110*cdf0e10cSrcweir } 111*cdf0e10cSrcweir } 112*cdf0e10cSrcweir return true; 113*cdf0e10cSrcweir } 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir private static final class Provider implements XInstanceProvider { 116*cdf0e10cSrcweir public Object getInstance(String instanceName) { 117*cdf0e10cSrcweir synchronized (map) { 118*cdf0e10cSrcweir Object o = map.get(instanceName); 119*cdf0e10cSrcweir if (o == null) { 120*cdf0e10cSrcweir o = new XDerived() {}; 121*cdf0e10cSrcweir map.put(instanceName, o); 122*cdf0e10cSrcweir } 123*cdf0e10cSrcweir return o; 124*cdf0e10cSrcweir } 125*cdf0e10cSrcweir } 126*cdf0e10cSrcweir 127*cdf0e10cSrcweir private final HashMap map = new HashMap(); 128*cdf0e10cSrcweir } 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir private final class Done implements XDone { 131*cdf0e10cSrcweir public void notifyDone() { 132*cdf0e10cSrcweir synchronized (lock) { 133*cdf0e10cSrcweir done = true; 134*cdf0e10cSrcweir lock.notifyAll(); 135*cdf0e10cSrcweir } 136*cdf0e10cSrcweir } 137*cdf0e10cSrcweir } 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir private final Object lock = new Object(); 140*cdf0e10cSrcweir private boolean done = false; 141*cdf0e10cSrcweir } 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir private static final class Provider implements XInstanceProvider { 144*cdf0e10cSrcweir public Provider(TestBed testBed, String unoTypes, String unoServices) { 145*cdf0e10cSrcweir this.testBed = testBed; 146*cdf0e10cSrcweir this.unoTypes = unoTypes; 147*cdf0e10cSrcweir this.unoServices = unoServices; 148*cdf0e10cSrcweir } 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir public Object getInstance(String instanceName) { 151*cdf0e10cSrcweir return new XTestFrame() { 152*cdf0e10cSrcweir public void notifyAccepting( 153*cdf0e10cSrcweir final XDone done, final Object object1, 154*cdf0e10cSrcweir final Object object2) 155*cdf0e10cSrcweir { 156*cdf0e10cSrcweir new Thread() { 157*cdf0e10cSrcweir public void run() { 158*cdf0e10cSrcweir try { 159*cdf0e10cSrcweir Object test1Aa = object1; 160*cdf0e10cSrcweir XBase test1Ab = UnoRuntime.queryInterface( 161*cdf0e10cSrcweir XBase.class, test1Aa); 162*cdf0e10cSrcweir XDerived test1Ac = 163*cdf0e10cSrcweir UnoRuntime.queryInterface( 164*cdf0e10cSrcweir XDerived.class, test1Aa); 165*cdf0e10cSrcweir Object test2Aa = object2; 166*cdf0e10cSrcweir XBase test2Ab = UnoRuntime.queryInterface( 167*cdf0e10cSrcweir XBase.class, test2Aa); 168*cdf0e10cSrcweir XDerived test2Ac = 169*cdf0e10cSrcweir UnoRuntime.queryInterface( 170*cdf0e10cSrcweir XDerived.class, test2Aa); 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir Hashtable params = new Hashtable(); 173*cdf0e10cSrcweir params.put("UNO_TYPES", unoTypes); 174*cdf0e10cSrcweir params.put("UNO_SERVICES", unoServices); 175*cdf0e10cSrcweir XComponentContext context = Bootstrap. 176*cdf0e10cSrcweir defaultBootstrap_InitialComponentContext( 177*cdf0e10cSrcweir null, params); 178*cdf0e10cSrcweir XMultiComponentFactory factory 179*cdf0e10cSrcweir = context.getServiceManager(); 180*cdf0e10cSrcweir XImplementationLoader loader = 181*cdf0e10cSrcweir UnoRuntime.queryInterface( 182*cdf0e10cSrcweir XImplementationLoader.class, 183*cdf0e10cSrcweir factory.createInstanceWithContext( 184*cdf0e10cSrcweir "com.sun.star.loader." 185*cdf0e10cSrcweir + "SharedLibrary", 186*cdf0e10cSrcweir context)); 187*cdf0e10cSrcweir XSingleComponentFactory factory2 = 188*cdf0e10cSrcweir UnoRuntime.queryInterface( 189*cdf0e10cSrcweir XSingleComponentFactory.class, 190*cdf0e10cSrcweir loader.activate( 191*cdf0e10cSrcweir "com.sun.star.test.bridges." 192*cdf0e10cSrcweir + "testequals.impl", 193*cdf0e10cSrcweir "", "../lib/testequals.uno", 194*cdf0e10cSrcweir null)); 195*cdf0e10cSrcweir XTestInterface test = 196*cdf0e10cSrcweir UnoRuntime.queryInterface( 197*cdf0e10cSrcweir XTestInterface.class, 198*cdf0e10cSrcweir factory2.createInstanceWithContext( 199*cdf0e10cSrcweir context)); 200*cdf0e10cSrcweir // allow client to start accepting: 201*cdf0e10cSrcweir Thread.sleep(3000); 202*cdf0e10cSrcweir test.connect( 203*cdf0e10cSrcweir CONNECTION_DESCRIPTION, 204*cdf0e10cSrcweir PROTOCOL_DESCRIPTION); 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir Object test1Ba = test.get(INSTANCE1); 207*cdf0e10cSrcweir XBase test1Bb = UnoRuntime.queryInterface( 208*cdf0e10cSrcweir XBase.class, test1Ba); 209*cdf0e10cSrcweir XDerived test1Bc = 210*cdf0e10cSrcweir UnoRuntime.queryInterface( 211*cdf0e10cSrcweir XDerived.class, test1Ba); 212*cdf0e10cSrcweir Object test2Ba = test.get(INSTANCE2); 213*cdf0e10cSrcweir XBase test2Bb = UnoRuntime.queryInterface( 214*cdf0e10cSrcweir XBase.class, test2Ba); 215*cdf0e10cSrcweir XDerived test2Bc = 216*cdf0e10cSrcweir UnoRuntime.queryInterface( 217*cdf0e10cSrcweir XDerived.class, test2Ba); 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir boolean success = true; 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir success &= test( 222*cdf0e10cSrcweir "UnoRumtime.areSame(null, null)", 223*cdf0e10cSrcweir UnoRuntime.areSame(null, null)); 224*cdf0e10cSrcweir success &= test( 225*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test1Aa)", 226*cdf0e10cSrcweir !UnoRuntime.areSame(null, test1Aa)); 227*cdf0e10cSrcweir success &= test( 228*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test1Ab)", 229*cdf0e10cSrcweir !UnoRuntime.areSame(null, test1Ab)); 230*cdf0e10cSrcweir success &= test( 231*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test1Ac)", 232*cdf0e10cSrcweir !UnoRuntime.areSame(null, test1Ac)); 233*cdf0e10cSrcweir success &= test( 234*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test1Ba)", 235*cdf0e10cSrcweir !UnoRuntime.areSame(null, test1Ba)); 236*cdf0e10cSrcweir success &= test( 237*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test1Bb)", 238*cdf0e10cSrcweir !UnoRuntime.areSame(null, test1Bb)); 239*cdf0e10cSrcweir success &= test( 240*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test1Bc)", 241*cdf0e10cSrcweir !UnoRuntime.areSame(null, test1Bc)); 242*cdf0e10cSrcweir success &= test( 243*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test2Aa)", 244*cdf0e10cSrcweir !UnoRuntime.areSame(null, test2Aa)); 245*cdf0e10cSrcweir success &= test( 246*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test2Ab)", 247*cdf0e10cSrcweir !UnoRuntime.areSame(null, test2Ab)); 248*cdf0e10cSrcweir success &= test( 249*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test2Ac)", 250*cdf0e10cSrcweir !UnoRuntime.areSame(null, test2Ac)); 251*cdf0e10cSrcweir success &= test( 252*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test2Ba)", 253*cdf0e10cSrcweir !UnoRuntime.areSame(null, test2Ba)); 254*cdf0e10cSrcweir success &= test( 255*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test2Bb)", 256*cdf0e10cSrcweir !UnoRuntime.areSame(null, test2Bb)); 257*cdf0e10cSrcweir success &= test( 258*cdf0e10cSrcweir "!UnoRumtime.areSame(null, test2Bc)", 259*cdf0e10cSrcweir !UnoRuntime.areSame(null, test2Bc)); 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir success &= test( 262*cdf0e10cSrcweir "!test1Aa.equals(null)", 263*cdf0e10cSrcweir !test1Aa.equals(null)); 264*cdf0e10cSrcweir success &= test( 265*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Aa, null)", 266*cdf0e10cSrcweir !UnoRuntime.areSame(test1Aa, null)); 267*cdf0e10cSrcweir success &= test( 268*cdf0e10cSrcweir "test1Aa.equals(test1Aa)", 269*cdf0e10cSrcweir test1Aa.equals(test1Aa)); 270*cdf0e10cSrcweir success &= test( 271*cdf0e10cSrcweir "UnoRuntime.areSame(test1Aa, test1Aa)", 272*cdf0e10cSrcweir UnoRuntime.areSame(test1Aa, test1Aa)); 273*cdf0e10cSrcweir success &= test( 274*cdf0e10cSrcweir "test1Aa.equals(test1Ab)", 275*cdf0e10cSrcweir test1Aa.equals(test1Ab)); 276*cdf0e10cSrcweir success &= test( 277*cdf0e10cSrcweir "UnoRuntime.areSame(test1Aa, test1Ab)", 278*cdf0e10cSrcweir UnoRuntime.areSame(test1Aa, test1Ab)); 279*cdf0e10cSrcweir success &= test( 280*cdf0e10cSrcweir "test1Aa.equals(test1Ac)", 281*cdf0e10cSrcweir test1Aa.equals(test1Ac)); 282*cdf0e10cSrcweir success &= test( 283*cdf0e10cSrcweir "UnoRuntime.areSame(test1Aa, test1Ac)", 284*cdf0e10cSrcweir UnoRuntime.areSame(test1Aa, test1Ac)); 285*cdf0e10cSrcweir success &= test( 286*cdf0e10cSrcweir "test1Aa.equals(test1Ba)", 287*cdf0e10cSrcweir test1Aa.equals(test1Ba)); 288*cdf0e10cSrcweir success &= test( 289*cdf0e10cSrcweir "UnoRuntime.areSame(test1Aa, test1Ba)", 290*cdf0e10cSrcweir UnoRuntime.areSame(test1Aa, test1Ba)); 291*cdf0e10cSrcweir success &= test( 292*cdf0e10cSrcweir "test1Aa.equals(test1Bb)", 293*cdf0e10cSrcweir test1Aa.equals(test1Bb)); 294*cdf0e10cSrcweir success &= test( 295*cdf0e10cSrcweir "UnoRuntime.areSame(test1Aa, test1Bb)", 296*cdf0e10cSrcweir UnoRuntime.areSame(test1Aa, test1Bb)); 297*cdf0e10cSrcweir success &= test( 298*cdf0e10cSrcweir "test1Aa.equals(test1Bc)", 299*cdf0e10cSrcweir test1Aa.equals(test1Bc)); 300*cdf0e10cSrcweir success &= test( 301*cdf0e10cSrcweir "UnoRuntime.areSame(test1Aa, test1Bc)", 302*cdf0e10cSrcweir UnoRuntime.areSame(test1Aa, test1Bc)); 303*cdf0e10cSrcweir success &= test( 304*cdf0e10cSrcweir "!test1Aa.equals(test2Aa)", 305*cdf0e10cSrcweir !test1Aa.equals(test2Aa)); 306*cdf0e10cSrcweir success &= test( 307*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Aa, test2Aa)", 308*cdf0e10cSrcweir !UnoRuntime.areSame(test1Aa, test2Aa)); 309*cdf0e10cSrcweir success &= test( 310*cdf0e10cSrcweir "!test1Aa.equals(test2Ab)", 311*cdf0e10cSrcweir !test1Aa.equals(test2Ab)); 312*cdf0e10cSrcweir success &= test( 313*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Aa, test2Ab)", 314*cdf0e10cSrcweir !UnoRuntime.areSame(test1Aa, test2Ab)); 315*cdf0e10cSrcweir success &= test( 316*cdf0e10cSrcweir "!test1Aa.equals(test2Ac)", 317*cdf0e10cSrcweir !test1Aa.equals(test2Ac)); 318*cdf0e10cSrcweir success &= test( 319*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Aa, test2Ac)", 320*cdf0e10cSrcweir !UnoRuntime.areSame(test1Aa, test2Ac)); 321*cdf0e10cSrcweir success &= test( 322*cdf0e10cSrcweir "!test1Aa.equals(test2Ba)", 323*cdf0e10cSrcweir !test1Aa.equals(test2Ba)); 324*cdf0e10cSrcweir success &= test( 325*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Aa, test2Ba)", 326*cdf0e10cSrcweir !UnoRuntime.areSame(test1Aa, test2Ba)); 327*cdf0e10cSrcweir success &= test( 328*cdf0e10cSrcweir "!test1Aa.equals(test2Bb)", 329*cdf0e10cSrcweir !test1Aa.equals(test2Bb)); 330*cdf0e10cSrcweir success &= test( 331*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Aa, test2Bb)", 332*cdf0e10cSrcweir !UnoRuntime.areSame(test1Aa, test2Bb)); 333*cdf0e10cSrcweir success &= test( 334*cdf0e10cSrcweir "!test1Aa.equals(test2Bc)", 335*cdf0e10cSrcweir !test1Aa.equals(test2Bc)); 336*cdf0e10cSrcweir success &= test( 337*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Aa, test2Bc)", 338*cdf0e10cSrcweir !UnoRuntime.areSame(test1Aa, test2Bc)); 339*cdf0e10cSrcweir 340*cdf0e10cSrcweir success &= test( 341*cdf0e10cSrcweir "!test1Ab.equals(null)", 342*cdf0e10cSrcweir !test1Ab.equals(null)); 343*cdf0e10cSrcweir success &= test( 344*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ab, null)", 345*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ab, null)); 346*cdf0e10cSrcweir success &= test( 347*cdf0e10cSrcweir "test1Ab.equals(test1Aa)", 348*cdf0e10cSrcweir test1Ab.equals(test1Aa)); 349*cdf0e10cSrcweir success &= test( 350*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ab, test1Aa)", 351*cdf0e10cSrcweir UnoRuntime.areSame(test1Ab, test1Aa)); 352*cdf0e10cSrcweir success &= test( 353*cdf0e10cSrcweir "test1Ab.equals(test1Ab)", 354*cdf0e10cSrcweir test1Ab.equals(test1Ab)); 355*cdf0e10cSrcweir success &= test( 356*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ab, test1Ab)", 357*cdf0e10cSrcweir UnoRuntime.areSame(test1Ab, test1Ab)); 358*cdf0e10cSrcweir success &= test( 359*cdf0e10cSrcweir "test1Ab.equals(test1Ac)", 360*cdf0e10cSrcweir test1Ab.equals(test1Ac)); 361*cdf0e10cSrcweir success &= test( 362*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ab, test1Ac)", 363*cdf0e10cSrcweir UnoRuntime.areSame(test1Ab, test1Ac)); 364*cdf0e10cSrcweir success &= test( 365*cdf0e10cSrcweir "test1Ab.equals(test1Ba)", 366*cdf0e10cSrcweir test1Ab.equals(test1Ba)); 367*cdf0e10cSrcweir success &= test( 368*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ab, test1Ba)", 369*cdf0e10cSrcweir UnoRuntime.areSame(test1Ab, test1Ba)); 370*cdf0e10cSrcweir success &= test( 371*cdf0e10cSrcweir "test1Ab.equals(test1Bb)", 372*cdf0e10cSrcweir test1Ab.equals(test1Bb)); 373*cdf0e10cSrcweir success &= test( 374*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ab, test1Bb)", 375*cdf0e10cSrcweir UnoRuntime.areSame(test1Ab, test1Bb)); 376*cdf0e10cSrcweir success &= test( 377*cdf0e10cSrcweir "test1Ab.equals(test1Bc)", 378*cdf0e10cSrcweir test1Ab.equals(test1Bc)); 379*cdf0e10cSrcweir success &= test( 380*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ab, test1Bc)", 381*cdf0e10cSrcweir UnoRuntime.areSame(test1Ab, test1Bc)); 382*cdf0e10cSrcweir success &= test( 383*cdf0e10cSrcweir "!test1Ab.equals(test2Aa)", 384*cdf0e10cSrcweir !test1Ab.equals(test2Aa)); 385*cdf0e10cSrcweir success &= test( 386*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ab, test2Aa)", 387*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ab, test2Aa)); 388*cdf0e10cSrcweir success &= test( 389*cdf0e10cSrcweir "!test1Ab.equals(test2Ab)", 390*cdf0e10cSrcweir !test1Ab.equals(test2Ab)); 391*cdf0e10cSrcweir success &= test( 392*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ab, test2Ab)", 393*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ab, test2Ab)); 394*cdf0e10cSrcweir success &= test( 395*cdf0e10cSrcweir "!test1Ab.equals(test2Ac)", 396*cdf0e10cSrcweir !test1Ab.equals(test2Ac)); 397*cdf0e10cSrcweir success &= test( 398*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ab, test2Ac)", 399*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ab, test2Ac)); 400*cdf0e10cSrcweir success &= test( 401*cdf0e10cSrcweir "!test1Ab.equals(test2Ba)", 402*cdf0e10cSrcweir !test1Ab.equals(test2Ba)); 403*cdf0e10cSrcweir success &= test( 404*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ab, test2Ba)", 405*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ab, test2Ba)); 406*cdf0e10cSrcweir success &= test( 407*cdf0e10cSrcweir "!test1Ab.equals(test2Bb)", 408*cdf0e10cSrcweir !test1Ab.equals(test2Bb)); 409*cdf0e10cSrcweir success &= test( 410*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ab, test2Bb)", 411*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ab, test2Bb)); 412*cdf0e10cSrcweir success &= test( 413*cdf0e10cSrcweir "!test1Ab.equals(test2Bc)", 414*cdf0e10cSrcweir !test1Ab.equals(test2Bc)); 415*cdf0e10cSrcweir success &= test( 416*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ab, test2Bc)", 417*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ab, test2Bc)); 418*cdf0e10cSrcweir 419*cdf0e10cSrcweir success &= test( 420*cdf0e10cSrcweir "!test1Ac.equals(null)", 421*cdf0e10cSrcweir !test1Ac.equals(null)); 422*cdf0e10cSrcweir success &= test( 423*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ac, null)", 424*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ac, null)); 425*cdf0e10cSrcweir success &= test( 426*cdf0e10cSrcweir "test1Ac.equals(test1Aa)", 427*cdf0e10cSrcweir test1Ac.equals(test1Aa)); 428*cdf0e10cSrcweir success &= test( 429*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ac, test1Aa)", 430*cdf0e10cSrcweir UnoRuntime.areSame(test1Ac, test1Aa)); 431*cdf0e10cSrcweir success &= test( 432*cdf0e10cSrcweir "test1Ac.equals(test1Ab)", 433*cdf0e10cSrcweir test1Ac.equals(test1Ab)); 434*cdf0e10cSrcweir success &= test( 435*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ac, test1Ab)", 436*cdf0e10cSrcweir UnoRuntime.areSame(test1Ac, test1Ab)); 437*cdf0e10cSrcweir success &= test( 438*cdf0e10cSrcweir "test1Ac.equals(test1Ac)", 439*cdf0e10cSrcweir test1Ac.equals(test1Ac)); 440*cdf0e10cSrcweir success &= test( 441*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ac, test1Ac)", 442*cdf0e10cSrcweir UnoRuntime.areSame(test1Ac, test1Ac)); 443*cdf0e10cSrcweir success &= test( 444*cdf0e10cSrcweir "test1Ac.equals(test1Ba)", 445*cdf0e10cSrcweir test1Ac.equals(test1Ba)); 446*cdf0e10cSrcweir success &= test( 447*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ac, test1Ba)", 448*cdf0e10cSrcweir UnoRuntime.areSame(test1Ac, test1Ba)); 449*cdf0e10cSrcweir success &= test( 450*cdf0e10cSrcweir "test1Ac.equals(test1Bb)", 451*cdf0e10cSrcweir test1Ac.equals(test1Bb)); 452*cdf0e10cSrcweir success &= test( 453*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ac, test1Bb)", 454*cdf0e10cSrcweir UnoRuntime.areSame(test1Ac, test1Bb)); 455*cdf0e10cSrcweir success &= test( 456*cdf0e10cSrcweir "test1Ac.equals(test1Bc)", 457*cdf0e10cSrcweir test1Ac.equals(test1Bc)); 458*cdf0e10cSrcweir success &= test( 459*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ac, test1Bc)", 460*cdf0e10cSrcweir UnoRuntime.areSame(test1Ac, test1Bc)); 461*cdf0e10cSrcweir success &= test( 462*cdf0e10cSrcweir "!test1Ac.equals(test2Aa)", 463*cdf0e10cSrcweir !test1Ac.equals(test2Aa)); 464*cdf0e10cSrcweir success &= test( 465*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ac, test2Aa)", 466*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ac, test2Aa)); 467*cdf0e10cSrcweir success &= test( 468*cdf0e10cSrcweir "!test1Ac.equals(test2Ab)", 469*cdf0e10cSrcweir !test1Ac.equals(test2Ab)); 470*cdf0e10cSrcweir success &= test( 471*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ac, test2Ab)", 472*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ac, test2Ab)); 473*cdf0e10cSrcweir success &= test( 474*cdf0e10cSrcweir "!test1Ac.equals(test2Ac)", 475*cdf0e10cSrcweir !test1Ac.equals(test2Ac)); 476*cdf0e10cSrcweir success &= test( 477*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ac, test2Ac)", 478*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ac, test2Ac)); 479*cdf0e10cSrcweir success &= test( 480*cdf0e10cSrcweir "!test1Ac.equals(test2Ba)", 481*cdf0e10cSrcweir !test1Ac.equals(test2Ba)); 482*cdf0e10cSrcweir success &= test( 483*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ac, test2Ba)", 484*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ac, test2Ba)); 485*cdf0e10cSrcweir success &= test( 486*cdf0e10cSrcweir "!test1Ac.equals(test2Bb)", 487*cdf0e10cSrcweir !test1Ac.equals(test2Bb)); 488*cdf0e10cSrcweir success &= test( 489*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ac, test2Bb)", 490*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ac, test2Bb)); 491*cdf0e10cSrcweir success &= test( 492*cdf0e10cSrcweir "!test1Ac.equals(test2Bc)", 493*cdf0e10cSrcweir !test1Ac.equals(test2Bc)); 494*cdf0e10cSrcweir success &= test( 495*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ac, test2Bc)", 496*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ac, test2Bc)); 497*cdf0e10cSrcweir 498*cdf0e10cSrcweir success &= test( 499*cdf0e10cSrcweir "!test1Ba.equals(null)", 500*cdf0e10cSrcweir !test1Ba.equals(null)); 501*cdf0e10cSrcweir success &= test( 502*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ba, null)", 503*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ba, null)); 504*cdf0e10cSrcweir success &= test( 505*cdf0e10cSrcweir "test1Ba.equals(test1Aa)", 506*cdf0e10cSrcweir test1Ba.equals(test1Aa)); 507*cdf0e10cSrcweir success &= test( 508*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ba, test1Aa)", 509*cdf0e10cSrcweir UnoRuntime.areSame(test1Ba, test1Aa)); 510*cdf0e10cSrcweir success &= test( 511*cdf0e10cSrcweir "test1Ba.equals(test1Ab)", 512*cdf0e10cSrcweir test1Ba.equals(test1Ab)); 513*cdf0e10cSrcweir success &= test( 514*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ba, test1Ab)", 515*cdf0e10cSrcweir UnoRuntime.areSame(test1Ba, test1Ab)); 516*cdf0e10cSrcweir success &= test( 517*cdf0e10cSrcweir "test1Ba.equals(test1Ac)", 518*cdf0e10cSrcweir test1Ba.equals(test1Ac)); 519*cdf0e10cSrcweir success &= test( 520*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ba, test1Ac)", 521*cdf0e10cSrcweir UnoRuntime.areSame(test1Ba, test1Ac)); 522*cdf0e10cSrcweir success &= test( 523*cdf0e10cSrcweir "test1Ba.equals(test1Ba)", 524*cdf0e10cSrcweir test1Ba.equals(test1Ba)); 525*cdf0e10cSrcweir success &= test( 526*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ba, test1Ba)", 527*cdf0e10cSrcweir UnoRuntime.areSame(test1Ba, test1Ba)); 528*cdf0e10cSrcweir success &= test( 529*cdf0e10cSrcweir "test1Ba.equals(test1Bb)", 530*cdf0e10cSrcweir test1Ba.equals(test1Bb)); 531*cdf0e10cSrcweir success &= test( 532*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ba, test1Bb)", 533*cdf0e10cSrcweir UnoRuntime.areSame(test1Ba, test1Bb)); 534*cdf0e10cSrcweir success &= test( 535*cdf0e10cSrcweir "test1Ba.equals(test1Bc)", 536*cdf0e10cSrcweir test1Ba.equals(test1Bc)); 537*cdf0e10cSrcweir success &= test( 538*cdf0e10cSrcweir "UnoRuntime.areSame(test1Ba, test1Bc)", 539*cdf0e10cSrcweir UnoRuntime.areSame(test1Ba, test1Bc)); 540*cdf0e10cSrcweir success &= test( 541*cdf0e10cSrcweir "!test1Ba.equals(test2Aa)", 542*cdf0e10cSrcweir !test1Ba.equals(test2Aa)); 543*cdf0e10cSrcweir success &= test( 544*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ba, test2Aa)", 545*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ba, test2Aa)); 546*cdf0e10cSrcweir success &= test( 547*cdf0e10cSrcweir "!test1Ba.equals(test2Ab)", 548*cdf0e10cSrcweir !test1Ba.equals(test2Ab)); 549*cdf0e10cSrcweir success &= test( 550*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ba, test2Ab)", 551*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ba, test2Ab)); 552*cdf0e10cSrcweir success &= test( 553*cdf0e10cSrcweir "!test1Ba.equals(test2Ac)", 554*cdf0e10cSrcweir !test1Ba.equals(test2Ac)); 555*cdf0e10cSrcweir success &= test( 556*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ba, test2Ac)", 557*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ba, test2Ac)); 558*cdf0e10cSrcweir success &= test( 559*cdf0e10cSrcweir "!test1Ba.equals(test2Ba)", 560*cdf0e10cSrcweir !test1Ba.equals(test2Ba)); 561*cdf0e10cSrcweir success &= test( 562*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ba, test2Ba)", 563*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ba, test2Ba)); 564*cdf0e10cSrcweir success &= test( 565*cdf0e10cSrcweir "!test1Ba.equals(test2Bb)", 566*cdf0e10cSrcweir !test1Ba.equals(test2Bb)); 567*cdf0e10cSrcweir success &= test( 568*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ba, test2Bb)", 569*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ba, test2Bb)); 570*cdf0e10cSrcweir success &= test( 571*cdf0e10cSrcweir "!test1Ba.equals(test2Bc)", 572*cdf0e10cSrcweir !test1Ba.equals(test2Bc)); 573*cdf0e10cSrcweir success &= test( 574*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Ba, test2Bc)", 575*cdf0e10cSrcweir !UnoRuntime.areSame(test1Ba, test2Bc)); 576*cdf0e10cSrcweir 577*cdf0e10cSrcweir success &= test( 578*cdf0e10cSrcweir "!test1Bb.equals(null)", 579*cdf0e10cSrcweir !test1Bb.equals(null)); 580*cdf0e10cSrcweir success &= test( 581*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bb, null)", 582*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bb, null)); 583*cdf0e10cSrcweir success &= test( 584*cdf0e10cSrcweir "test1Bb.equals(test1Aa)", 585*cdf0e10cSrcweir test1Bb.equals(test1Aa)); 586*cdf0e10cSrcweir success &= test( 587*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bb, test1Aa)", 588*cdf0e10cSrcweir UnoRuntime.areSame(test1Bb, test1Aa)); 589*cdf0e10cSrcweir success &= test( 590*cdf0e10cSrcweir "test1Bb.equals(test1Ab)", 591*cdf0e10cSrcweir test1Bb.equals(test1Ab)); 592*cdf0e10cSrcweir success &= test( 593*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bb, test1Ab)", 594*cdf0e10cSrcweir UnoRuntime.areSame(test1Bb, test1Ab)); 595*cdf0e10cSrcweir success &= test( 596*cdf0e10cSrcweir "test1Bb.equals(test1Ac)", 597*cdf0e10cSrcweir test1Bb.equals(test1Ac)); 598*cdf0e10cSrcweir success &= test( 599*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bb, test1Ac)", 600*cdf0e10cSrcweir UnoRuntime.areSame(test1Bb, test1Ac)); 601*cdf0e10cSrcweir success &= test( 602*cdf0e10cSrcweir "test1Bb.equals(test1Ba)", 603*cdf0e10cSrcweir test1Bb.equals(test1Ba)); 604*cdf0e10cSrcweir success &= test( 605*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bb, test1Ba)", 606*cdf0e10cSrcweir UnoRuntime.areSame(test1Bb, test1Ba)); 607*cdf0e10cSrcweir success &= test( 608*cdf0e10cSrcweir "test1Bb.equals(test1Bb)", 609*cdf0e10cSrcweir test1Bb.equals(test1Bb)); 610*cdf0e10cSrcweir success &= test( 611*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bb, test1Bb)", 612*cdf0e10cSrcweir UnoRuntime.areSame(test1Bb, test1Bb)); 613*cdf0e10cSrcweir success &= test( 614*cdf0e10cSrcweir "test1Bb.equals(test1Bc)", 615*cdf0e10cSrcweir test1Bb.equals(test1Bc)); 616*cdf0e10cSrcweir success &= test( 617*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bb, test1Bc)", 618*cdf0e10cSrcweir UnoRuntime.areSame(test1Bb, test1Bc)); 619*cdf0e10cSrcweir success &= test( 620*cdf0e10cSrcweir "!test1Bb.equals(test2Aa)", 621*cdf0e10cSrcweir !test1Bb.equals(test2Aa)); 622*cdf0e10cSrcweir success &= test( 623*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bb, test2Aa)", 624*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bb, test2Aa)); 625*cdf0e10cSrcweir success &= test( 626*cdf0e10cSrcweir "!test1Bb.equals(test2Ab)", 627*cdf0e10cSrcweir !test1Bb.equals(test2Ab)); 628*cdf0e10cSrcweir success &= test( 629*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bb, test2Ab)", 630*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bb, test2Ab)); 631*cdf0e10cSrcweir success &= test( 632*cdf0e10cSrcweir "!test1Bb.equals(test2Ac)", 633*cdf0e10cSrcweir !test1Bb.equals(test2Ac)); 634*cdf0e10cSrcweir success &= test( 635*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bb, test2Ac)", 636*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bb, test2Ac)); 637*cdf0e10cSrcweir success &= test( 638*cdf0e10cSrcweir "!test1Bb.equals(test2Ba)", 639*cdf0e10cSrcweir !test1Bb.equals(test2Ba)); 640*cdf0e10cSrcweir success &= test( 641*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bb, test2Ba)", 642*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bb, test2Ba)); 643*cdf0e10cSrcweir success &= test( 644*cdf0e10cSrcweir "!test1Bb.equals(test2Bb)", 645*cdf0e10cSrcweir !test1Bb.equals(test2Bb)); 646*cdf0e10cSrcweir success &= test( 647*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bb, test2Bb)", 648*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bb, test2Bb)); 649*cdf0e10cSrcweir success &= test( 650*cdf0e10cSrcweir "!test1Bb.equals(test2Bc)", 651*cdf0e10cSrcweir !test1Bb.equals(test2Bc)); 652*cdf0e10cSrcweir success &= test( 653*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bb, test2Bc)", 654*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bb, test2Bc)); 655*cdf0e10cSrcweir 656*cdf0e10cSrcweir success &= test( 657*cdf0e10cSrcweir "!test1Bc.equals(null)", 658*cdf0e10cSrcweir !test1Bc.equals(null)); 659*cdf0e10cSrcweir success &= test( 660*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bc, null)", 661*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bc, null)); 662*cdf0e10cSrcweir success &= test( 663*cdf0e10cSrcweir "test1Bc.equals(test1Aa)", 664*cdf0e10cSrcweir test1Bc.equals(test1Aa)); 665*cdf0e10cSrcweir success &= test( 666*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bc, test1Aa)", 667*cdf0e10cSrcweir UnoRuntime.areSame(test1Bc, test1Aa)); 668*cdf0e10cSrcweir success &= test( 669*cdf0e10cSrcweir "test1Bc.equals(test1Ab)", 670*cdf0e10cSrcweir test1Bc.equals(test1Ab)); 671*cdf0e10cSrcweir success &= test( 672*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bc, test1Ab)", 673*cdf0e10cSrcweir UnoRuntime.areSame(test1Bc, test1Ab)); 674*cdf0e10cSrcweir success &= test( 675*cdf0e10cSrcweir "test1Bc.equals(test1Ac)", 676*cdf0e10cSrcweir test1Bc.equals(test1Ac)); 677*cdf0e10cSrcweir success &= test( 678*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bc, test1Ac)", 679*cdf0e10cSrcweir UnoRuntime.areSame(test1Bc, test1Ac)); 680*cdf0e10cSrcweir success &= test( 681*cdf0e10cSrcweir "test1Bc.equals(test1Ba)", 682*cdf0e10cSrcweir test1Bc.equals(test1Ba)); 683*cdf0e10cSrcweir success &= test( 684*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bc, test1Ba)", 685*cdf0e10cSrcweir UnoRuntime.areSame(test1Bc, test1Ba)); 686*cdf0e10cSrcweir success &= test( 687*cdf0e10cSrcweir "test1Bc.equals(test1Bb)", 688*cdf0e10cSrcweir test1Bc.equals(test1Bb)); 689*cdf0e10cSrcweir success &= test( 690*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bc, test1Bb)", 691*cdf0e10cSrcweir UnoRuntime.areSame(test1Bc, test1Bb)); 692*cdf0e10cSrcweir success &= test( 693*cdf0e10cSrcweir "test1Bc.equals(test1Bc)", 694*cdf0e10cSrcweir test1Bc.equals(test1Bc)); 695*cdf0e10cSrcweir success &= test( 696*cdf0e10cSrcweir "UnoRuntime.areSame(test1Bc, test1Bc)", 697*cdf0e10cSrcweir UnoRuntime.areSame(test1Bc, test1Bc)); 698*cdf0e10cSrcweir success &= test( 699*cdf0e10cSrcweir "!test1Bc.equals(test2Aa)", 700*cdf0e10cSrcweir !test1Bc.equals(test2Aa)); 701*cdf0e10cSrcweir success &= test( 702*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bc, test2Aa)", 703*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bc, test2Aa)); 704*cdf0e10cSrcweir success &= test( 705*cdf0e10cSrcweir "!test1Bc.equals(test2Ab)", 706*cdf0e10cSrcweir !test1Bc.equals(test2Ab)); 707*cdf0e10cSrcweir success &= test( 708*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bc, test2Ab)", 709*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bc, test2Ab)); 710*cdf0e10cSrcweir success &= test( 711*cdf0e10cSrcweir "!test1Bc.equals(test2Ac)", 712*cdf0e10cSrcweir !test1Bc.equals(test2Ac)); 713*cdf0e10cSrcweir success &= test( 714*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bc, test2Ac)", 715*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bc, test2Ac)); 716*cdf0e10cSrcweir success &= test( 717*cdf0e10cSrcweir "!test1Bc.equals(test2Ba)", 718*cdf0e10cSrcweir !test1Bc.equals(test2Ba)); 719*cdf0e10cSrcweir success &= test( 720*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bc, test2Ba)", 721*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bc, test2Ba)); 722*cdf0e10cSrcweir success &= test( 723*cdf0e10cSrcweir "!test1Bc.equals(test2Bb)", 724*cdf0e10cSrcweir !test1Bc.equals(test2Bb)); 725*cdf0e10cSrcweir success &= test( 726*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bc, test2Bb)", 727*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bc, test2Bb)); 728*cdf0e10cSrcweir success &= test( 729*cdf0e10cSrcweir "!test1Bc.equals(test2Bc)", 730*cdf0e10cSrcweir !test1Bc.equals(test2Bc)); 731*cdf0e10cSrcweir success &= test( 732*cdf0e10cSrcweir "!UnoRuntime.areSame(test1Bc, test2Bc)", 733*cdf0e10cSrcweir !UnoRuntime.areSame(test1Bc, test2Bc)); 734*cdf0e10cSrcweir 735*cdf0e10cSrcweir success &= test( 736*cdf0e10cSrcweir "!test2Aa.equals(null)", 737*cdf0e10cSrcweir !test2Aa.equals(null)); 738*cdf0e10cSrcweir success &= test( 739*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Aa, null)", 740*cdf0e10cSrcweir !UnoRuntime.areSame(test2Aa, null)); 741*cdf0e10cSrcweir success &= test( 742*cdf0e10cSrcweir "!test2Aa.equals(test1Aa)", 743*cdf0e10cSrcweir !test2Aa.equals(test1Aa)); 744*cdf0e10cSrcweir success &= test( 745*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Aa, test1Aa)", 746*cdf0e10cSrcweir !UnoRuntime.areSame(test2Aa, test1Aa)); 747*cdf0e10cSrcweir success &= test( 748*cdf0e10cSrcweir "!test2Aa.equals(test1Ab)", 749*cdf0e10cSrcweir !test2Aa.equals(test1Ab)); 750*cdf0e10cSrcweir success &= test( 751*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Aa, test1Ab)", 752*cdf0e10cSrcweir !UnoRuntime.areSame(test2Aa, test1Ab)); 753*cdf0e10cSrcweir success &= test( 754*cdf0e10cSrcweir "!test2Aa.equals(test1Ac)", 755*cdf0e10cSrcweir !test2Aa.equals(test1Ac)); 756*cdf0e10cSrcweir success &= test( 757*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Aa, test1Ac)", 758*cdf0e10cSrcweir !UnoRuntime.areSame(test2Aa, test1Ac)); 759*cdf0e10cSrcweir success &= test( 760*cdf0e10cSrcweir "!test2Aa.equals(test1Ba)", 761*cdf0e10cSrcweir !test2Aa.equals(test1Ba)); 762*cdf0e10cSrcweir success &= test( 763*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Aa, test1Ba)", 764*cdf0e10cSrcweir !UnoRuntime.areSame(test2Aa, test1Ba)); 765*cdf0e10cSrcweir success &= test( 766*cdf0e10cSrcweir "!test2Aa.equals(test1Bb)", 767*cdf0e10cSrcweir !test2Aa.equals(test1Bb)); 768*cdf0e10cSrcweir success &= test( 769*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Aa, test1Bb)", 770*cdf0e10cSrcweir !UnoRuntime.areSame(test2Aa, test1Bb)); 771*cdf0e10cSrcweir success &= test( 772*cdf0e10cSrcweir "!test2Aa.equals(test1Bc)", 773*cdf0e10cSrcweir !test2Aa.equals(test1Bc)); 774*cdf0e10cSrcweir success &= test( 775*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Aa, test1Bc)", 776*cdf0e10cSrcweir !UnoRuntime.areSame(test2Aa, test1Bc)); 777*cdf0e10cSrcweir success &= test( 778*cdf0e10cSrcweir "test2Aa.equals(test2Aa)", 779*cdf0e10cSrcweir test2Aa.equals(test2Aa)); 780*cdf0e10cSrcweir success &= test( 781*cdf0e10cSrcweir "UnoRuntime.areSame(test2Aa, test2Aa)", 782*cdf0e10cSrcweir UnoRuntime.areSame(test2Aa, test2Aa)); 783*cdf0e10cSrcweir success &= test( 784*cdf0e10cSrcweir "test2Aa.equals(test2Ab)", 785*cdf0e10cSrcweir test2Aa.equals(test2Ab)); 786*cdf0e10cSrcweir success &= test( 787*cdf0e10cSrcweir "UnoRuntime.areSame(test2Aa, test2Ab)", 788*cdf0e10cSrcweir UnoRuntime.areSame(test2Aa, test2Ab)); 789*cdf0e10cSrcweir success &= test( 790*cdf0e10cSrcweir "test2Aa.equals(test2Ac)", 791*cdf0e10cSrcweir test2Aa.equals(test2Ac)); 792*cdf0e10cSrcweir success &= test( 793*cdf0e10cSrcweir "UnoRuntime.areSame(test2Aa, test2Ac)", 794*cdf0e10cSrcweir UnoRuntime.areSame(test2Aa, test2Ac)); 795*cdf0e10cSrcweir success &= test( 796*cdf0e10cSrcweir "test2Aa.equals(test2Ba)", 797*cdf0e10cSrcweir test2Aa.equals(test2Ba)); 798*cdf0e10cSrcweir success &= test( 799*cdf0e10cSrcweir "UnoRuntime.areSame(test2Aa, test2Ba)", 800*cdf0e10cSrcweir UnoRuntime.areSame(test2Aa, test2Ba)); 801*cdf0e10cSrcweir success &= test( 802*cdf0e10cSrcweir "test2Aa.equals(test2Bb)", 803*cdf0e10cSrcweir test2Aa.equals(test2Bb)); 804*cdf0e10cSrcweir success &= test( 805*cdf0e10cSrcweir "UnoRuntime.areSame(test2Aa, test2Bb)", 806*cdf0e10cSrcweir UnoRuntime.areSame(test2Aa, test2Bb)); 807*cdf0e10cSrcweir success &= test( 808*cdf0e10cSrcweir "test2Aa.equals(test2Bc)", 809*cdf0e10cSrcweir test2Aa.equals(test2Bc)); 810*cdf0e10cSrcweir success &= test( 811*cdf0e10cSrcweir "UnoRuntime.areSame(test2Aa, test2Bc)", 812*cdf0e10cSrcweir UnoRuntime.areSame(test2Aa, test2Bc)); 813*cdf0e10cSrcweir 814*cdf0e10cSrcweir success &= test( 815*cdf0e10cSrcweir "!test2Ab.equals(null)", 816*cdf0e10cSrcweir !test2Ab.equals(null)); 817*cdf0e10cSrcweir success &= test( 818*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ab, null)", 819*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ab, null)); 820*cdf0e10cSrcweir success &= test( 821*cdf0e10cSrcweir "!test2Ab.equals(test1Aa)", 822*cdf0e10cSrcweir !test2Ab.equals(test1Aa)); 823*cdf0e10cSrcweir success &= test( 824*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ab, test1Aa)", 825*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ab, test1Aa)); 826*cdf0e10cSrcweir success &= test( 827*cdf0e10cSrcweir "!test2Ab.equals(test1Ab)", 828*cdf0e10cSrcweir !test2Ab.equals(test1Ab)); 829*cdf0e10cSrcweir success &= test( 830*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ab, test1Ab)", 831*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ab, test1Ab)); 832*cdf0e10cSrcweir success &= test( 833*cdf0e10cSrcweir "!test2Ab.equals(test1Ac)", 834*cdf0e10cSrcweir !test2Ab.equals(test1Ac)); 835*cdf0e10cSrcweir success &= test( 836*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ab, test1Ac)", 837*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ab, test1Ac)); 838*cdf0e10cSrcweir success &= test( 839*cdf0e10cSrcweir "!test2Ab.equals(test1Ba)", 840*cdf0e10cSrcweir !test2Ab.equals(test1Ba)); 841*cdf0e10cSrcweir success &= test( 842*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ab, test1Ba)", 843*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ab, test1Ba)); 844*cdf0e10cSrcweir success &= test( 845*cdf0e10cSrcweir "!test2Ab.equals(test1Bb)", 846*cdf0e10cSrcweir !test2Ab.equals(test1Bb)); 847*cdf0e10cSrcweir success &= test( 848*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ab, test1Bb)", 849*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ab, test1Bb)); 850*cdf0e10cSrcweir success &= test( 851*cdf0e10cSrcweir "!test2Ab.equals(test1Bc)", 852*cdf0e10cSrcweir !test2Ab.equals(test1Bc)); 853*cdf0e10cSrcweir success &= test( 854*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ab, test1Bc)", 855*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ab, test1Bc)); 856*cdf0e10cSrcweir success &= test( 857*cdf0e10cSrcweir "test2Ab.equals(test2Aa)", 858*cdf0e10cSrcweir test2Ab.equals(test2Aa)); 859*cdf0e10cSrcweir success &= test( 860*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ab, test2Aa)", 861*cdf0e10cSrcweir UnoRuntime.areSame(test2Ab, test2Aa)); 862*cdf0e10cSrcweir success &= test( 863*cdf0e10cSrcweir "test2Ab.equals(test2Ab)", 864*cdf0e10cSrcweir test2Ab.equals(test2Ab)); 865*cdf0e10cSrcweir success &= test( 866*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ab, test2Ab)", 867*cdf0e10cSrcweir UnoRuntime.areSame(test2Ab, test2Ab)); 868*cdf0e10cSrcweir success &= test( 869*cdf0e10cSrcweir "test2Ab.equals(test2Ac)", 870*cdf0e10cSrcweir test2Ab.equals(test2Ac)); 871*cdf0e10cSrcweir success &= test( 872*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ab, test2Ac)", 873*cdf0e10cSrcweir UnoRuntime.areSame(test2Ab, test2Ac)); 874*cdf0e10cSrcweir success &= test( 875*cdf0e10cSrcweir "test2Ab.equals(test2Ba)", 876*cdf0e10cSrcweir test2Ab.equals(test2Ba)); 877*cdf0e10cSrcweir success &= test( 878*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ab, test2Ba)", 879*cdf0e10cSrcweir UnoRuntime.areSame(test2Ab, test2Ba)); 880*cdf0e10cSrcweir success &= test( 881*cdf0e10cSrcweir "test2Ab.equals(test2Bb)", 882*cdf0e10cSrcweir test2Ab.equals(test2Bb)); 883*cdf0e10cSrcweir success &= test( 884*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ab, test2Bb)", 885*cdf0e10cSrcweir UnoRuntime.areSame(test2Ab, test2Bb)); 886*cdf0e10cSrcweir success &= test( 887*cdf0e10cSrcweir "test2Ab.equals(test2Bc)", 888*cdf0e10cSrcweir test2Ab.equals(test2Bc)); 889*cdf0e10cSrcweir success &= test( 890*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ab, test2Bc)", 891*cdf0e10cSrcweir UnoRuntime.areSame(test2Ab, test2Bc)); 892*cdf0e10cSrcweir 893*cdf0e10cSrcweir success &= test( 894*cdf0e10cSrcweir "!test2Ac.equals(null)", 895*cdf0e10cSrcweir !test2Ac.equals(null)); 896*cdf0e10cSrcweir success &= test( 897*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ac, null)", 898*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ac, null)); 899*cdf0e10cSrcweir success &= test( 900*cdf0e10cSrcweir "!test2Ac.equals(test1Aa)", 901*cdf0e10cSrcweir !test2Ac.equals(test1Aa)); 902*cdf0e10cSrcweir success &= test( 903*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ac, test1Aa)", 904*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ac, test1Aa)); 905*cdf0e10cSrcweir success &= test( 906*cdf0e10cSrcweir "!test2Ac.equals(test1Ab)", 907*cdf0e10cSrcweir !test2Ac.equals(test1Ab)); 908*cdf0e10cSrcweir success &= test( 909*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ac, test1Ab)", 910*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ac, test1Ab)); 911*cdf0e10cSrcweir success &= test( 912*cdf0e10cSrcweir "!test2Ac.equals(test1Ac)", 913*cdf0e10cSrcweir !test2Ac.equals(test1Ac)); 914*cdf0e10cSrcweir success &= test( 915*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ac, test1Ac)", 916*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ac, test1Ac)); 917*cdf0e10cSrcweir success &= test( 918*cdf0e10cSrcweir "!test2Ac.equals(test1Ba)", 919*cdf0e10cSrcweir !test2Ac.equals(test1Ba)); 920*cdf0e10cSrcweir success &= test( 921*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ac, test1Ba)", 922*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ac, test1Ba)); 923*cdf0e10cSrcweir success &= test( 924*cdf0e10cSrcweir "!test2Ac.equals(test1Bb)", 925*cdf0e10cSrcweir !test2Ac.equals(test1Bb)); 926*cdf0e10cSrcweir success &= test( 927*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ac, test1Bb)", 928*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ac, test1Bb)); 929*cdf0e10cSrcweir success &= test( 930*cdf0e10cSrcweir "!test2Ac.equals(test1Bc)", 931*cdf0e10cSrcweir !test2Ac.equals(test1Bc)); 932*cdf0e10cSrcweir success &= test( 933*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ac, test1Bc)", 934*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ac, test1Bc)); 935*cdf0e10cSrcweir success &= test( 936*cdf0e10cSrcweir "test2Ac.equals(test2Aa)", 937*cdf0e10cSrcweir test2Ac.equals(test2Aa)); 938*cdf0e10cSrcweir success &= test( 939*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ac, test2Aa)", 940*cdf0e10cSrcweir UnoRuntime.areSame(test2Ac, test2Aa)); 941*cdf0e10cSrcweir success &= test( 942*cdf0e10cSrcweir "test2Ac.equals(test2Ab)", 943*cdf0e10cSrcweir test2Ac.equals(test2Ab)); 944*cdf0e10cSrcweir success &= test( 945*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ac, test2Ab)", 946*cdf0e10cSrcweir UnoRuntime.areSame(test2Ac, test2Ab)); 947*cdf0e10cSrcweir success &= test( 948*cdf0e10cSrcweir "test2Ac.equals(test2Ac)", 949*cdf0e10cSrcweir test2Ac.equals(test2Ac)); 950*cdf0e10cSrcweir success &= test( 951*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ac, test2Ac)", 952*cdf0e10cSrcweir UnoRuntime.areSame(test2Ac, test2Ac)); 953*cdf0e10cSrcweir success &= test( 954*cdf0e10cSrcweir "test2Ac.equals(test2Ba)", 955*cdf0e10cSrcweir test2Ac.equals(test2Ba)); 956*cdf0e10cSrcweir success &= test( 957*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ac, test2Ba)", 958*cdf0e10cSrcweir UnoRuntime.areSame(test2Ac, test2Ba)); 959*cdf0e10cSrcweir success &= test( 960*cdf0e10cSrcweir "test2Ac.equals(test2Bb)", 961*cdf0e10cSrcweir test2Ac.equals(test2Bb)); 962*cdf0e10cSrcweir success &= test( 963*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ac, test2Bb)", 964*cdf0e10cSrcweir UnoRuntime.areSame(test2Ac, test2Bb)); 965*cdf0e10cSrcweir success &= test( 966*cdf0e10cSrcweir "test2Ac.equals(test2Bc)", 967*cdf0e10cSrcweir test2Ac.equals(test2Bc)); 968*cdf0e10cSrcweir success &= test( 969*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ac, test2Bc)", 970*cdf0e10cSrcweir UnoRuntime.areSame(test2Ac, test2Bc)); 971*cdf0e10cSrcweir 972*cdf0e10cSrcweir success &= test( 973*cdf0e10cSrcweir "!test2Ba.equals(null)", 974*cdf0e10cSrcweir !test2Ba.equals(null)); 975*cdf0e10cSrcweir success &= test( 976*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ba, null)", 977*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ba, null)); 978*cdf0e10cSrcweir success &= test( 979*cdf0e10cSrcweir "!test2Ba.equals(test1Aa)", 980*cdf0e10cSrcweir !test2Ba.equals(test1Aa)); 981*cdf0e10cSrcweir success &= test( 982*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ba, test1Aa)", 983*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ba, test1Aa)); 984*cdf0e10cSrcweir success &= test( 985*cdf0e10cSrcweir "!test2Ba.equals(test1Ab)", 986*cdf0e10cSrcweir !test2Ba.equals(test1Ab)); 987*cdf0e10cSrcweir success &= test( 988*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ba, test1Ab)", 989*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ba, test1Ab)); 990*cdf0e10cSrcweir success &= test( 991*cdf0e10cSrcweir "!test2Ba.equals(test1Ac)", 992*cdf0e10cSrcweir !test2Ba.equals(test1Ac)); 993*cdf0e10cSrcweir success &= test( 994*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ba, test1Ac)", 995*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ba, test1Ac)); 996*cdf0e10cSrcweir success &= test( 997*cdf0e10cSrcweir "!test2Ba.equals(test1Ba)", 998*cdf0e10cSrcweir !test2Ba.equals(test1Ba)); 999*cdf0e10cSrcweir success &= test( 1000*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ba, test1Ba)", 1001*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ba, test1Ba)); 1002*cdf0e10cSrcweir success &= test( 1003*cdf0e10cSrcweir "!test2Ba.equals(test1Bb)", 1004*cdf0e10cSrcweir !test2Ba.equals(test1Bb)); 1005*cdf0e10cSrcweir success &= test( 1006*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ba, test1Bb)", 1007*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ba, test1Bb)); 1008*cdf0e10cSrcweir success &= test( 1009*cdf0e10cSrcweir "!test2Ba.equals(test1Bc)", 1010*cdf0e10cSrcweir !test2Ba.equals(test1Bc)); 1011*cdf0e10cSrcweir success &= test( 1012*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Ba, test1Bc)", 1013*cdf0e10cSrcweir !UnoRuntime.areSame(test2Ba, test1Bc)); 1014*cdf0e10cSrcweir success &= test( 1015*cdf0e10cSrcweir "test2Ba.equals(test2Aa)", 1016*cdf0e10cSrcweir test2Ba.equals(test2Aa)); 1017*cdf0e10cSrcweir success &= test( 1018*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ba, test2Aa)", 1019*cdf0e10cSrcweir UnoRuntime.areSame(test2Ba, test2Aa)); 1020*cdf0e10cSrcweir success &= test( 1021*cdf0e10cSrcweir "test2Ba.equals(test2Ab)", 1022*cdf0e10cSrcweir test2Ba.equals(test2Ab)); 1023*cdf0e10cSrcweir success &= test( 1024*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ba, test2Ab)", 1025*cdf0e10cSrcweir UnoRuntime.areSame(test2Ba, test2Ab)); 1026*cdf0e10cSrcweir success &= test( 1027*cdf0e10cSrcweir "test2Ba.equals(test2Ac)", 1028*cdf0e10cSrcweir test2Ba.equals(test2Ac)); 1029*cdf0e10cSrcweir success &= test( 1030*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ba, test2Ac)", 1031*cdf0e10cSrcweir UnoRuntime.areSame(test2Ba, test2Ac)); 1032*cdf0e10cSrcweir success &= test( 1033*cdf0e10cSrcweir "test2Ba.equals(test2Ba)", 1034*cdf0e10cSrcweir test2Ba.equals(test2Ba)); 1035*cdf0e10cSrcweir success &= test( 1036*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ba, test2Ba)", 1037*cdf0e10cSrcweir UnoRuntime.areSame(test2Ba, test2Ba)); 1038*cdf0e10cSrcweir success &= test( 1039*cdf0e10cSrcweir "test2Ba.equals(test2Bb)", 1040*cdf0e10cSrcweir test2Ba.equals(test2Bb)); 1041*cdf0e10cSrcweir success &= test( 1042*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ba, test2Bb)", 1043*cdf0e10cSrcweir UnoRuntime.areSame(test2Ba, test2Bb)); 1044*cdf0e10cSrcweir success &= test( 1045*cdf0e10cSrcweir "test2Ba.equals(test2Bc)", 1046*cdf0e10cSrcweir test2Ba.equals(test2Bc)); 1047*cdf0e10cSrcweir success &= test( 1048*cdf0e10cSrcweir "UnoRuntime.areSame(test2Ba, test2Bc)", 1049*cdf0e10cSrcweir UnoRuntime.areSame(test2Ba, test2Bc)); 1050*cdf0e10cSrcweir 1051*cdf0e10cSrcweir success &= test( 1052*cdf0e10cSrcweir "!test2Bb.equals(null)", 1053*cdf0e10cSrcweir !test2Bb.equals(null)); 1054*cdf0e10cSrcweir success &= test( 1055*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bb, null)", 1056*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bb, null)); 1057*cdf0e10cSrcweir success &= test( 1058*cdf0e10cSrcweir "!test2Bb.equals(test1Aa)", 1059*cdf0e10cSrcweir !test2Bb.equals(test1Aa)); 1060*cdf0e10cSrcweir success &= test( 1061*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bb, test1Aa)", 1062*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bb, test1Aa)); 1063*cdf0e10cSrcweir success &= test( 1064*cdf0e10cSrcweir "!test2Bb.equals(test1Ab)", 1065*cdf0e10cSrcweir !test2Bb.equals(test1Ab)); 1066*cdf0e10cSrcweir success &= test( 1067*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bb, test1Ab)", 1068*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bb, test1Ab)); 1069*cdf0e10cSrcweir success &= test( 1070*cdf0e10cSrcweir "!test2Bb.equals(test1Ac)", 1071*cdf0e10cSrcweir !test2Bb.equals(test1Ac)); 1072*cdf0e10cSrcweir success &= test( 1073*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bb, test1Ac)", 1074*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bb, test1Ac)); 1075*cdf0e10cSrcweir success &= test( 1076*cdf0e10cSrcweir "!test2Bb.equals(test1Ba)", 1077*cdf0e10cSrcweir !test2Bb.equals(test1Ba)); 1078*cdf0e10cSrcweir success &= test( 1079*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bb, test1Ba)", 1080*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bb, test1Ba)); 1081*cdf0e10cSrcweir success &= test( 1082*cdf0e10cSrcweir "!test2Bb.equals(test1Bb)", 1083*cdf0e10cSrcweir !test2Bb.equals(test1Bb)); 1084*cdf0e10cSrcweir success &= test( 1085*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bb, test1Bb)", 1086*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bb, test1Bb)); 1087*cdf0e10cSrcweir success &= test( 1088*cdf0e10cSrcweir "!test2Bb.equals(test1Bc)", 1089*cdf0e10cSrcweir !test2Bb.equals(test1Bc)); 1090*cdf0e10cSrcweir success &= test( 1091*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bb, test1Bc)", 1092*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bb, test1Bc)); 1093*cdf0e10cSrcweir success &= test( 1094*cdf0e10cSrcweir "test2Bb.equals(test2Aa)", 1095*cdf0e10cSrcweir test2Bb.equals(test2Aa)); 1096*cdf0e10cSrcweir success &= test( 1097*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bb, test2Aa)", 1098*cdf0e10cSrcweir UnoRuntime.areSame(test2Bb, test2Aa)); 1099*cdf0e10cSrcweir success &= test( 1100*cdf0e10cSrcweir "test2Bb.equals(test2Ab)", 1101*cdf0e10cSrcweir test2Bb.equals(test2Ab)); 1102*cdf0e10cSrcweir success &= test( 1103*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bb, test2Ab)", 1104*cdf0e10cSrcweir UnoRuntime.areSame(test2Bb, test2Ab)); 1105*cdf0e10cSrcweir success &= test( 1106*cdf0e10cSrcweir "test2Bb.equals(test2Ac)", 1107*cdf0e10cSrcweir test2Bb.equals(test2Ac)); 1108*cdf0e10cSrcweir success &= test( 1109*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bb, test2Ac)", 1110*cdf0e10cSrcweir UnoRuntime.areSame(test2Bb, test2Ac)); 1111*cdf0e10cSrcweir success &= test( 1112*cdf0e10cSrcweir "test2Bb.equals(test2Ba)", 1113*cdf0e10cSrcweir test2Bb.equals(test2Ba)); 1114*cdf0e10cSrcweir success &= test( 1115*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bb, test2Ba)", 1116*cdf0e10cSrcweir UnoRuntime.areSame(test2Bb, test2Ba)); 1117*cdf0e10cSrcweir success &= test( 1118*cdf0e10cSrcweir "test2Bb.equals(test2Bb)", 1119*cdf0e10cSrcweir test2Bb.equals(test2Bb)); 1120*cdf0e10cSrcweir success &= test( 1121*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bb, test2Bb)", 1122*cdf0e10cSrcweir UnoRuntime.areSame(test2Bb, test2Bb)); 1123*cdf0e10cSrcweir success &= test( 1124*cdf0e10cSrcweir "test2Bb.equals(test2Bc)", 1125*cdf0e10cSrcweir test2Bb.equals(test2Bc)); 1126*cdf0e10cSrcweir success &= test( 1127*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bb, test2Bc)", 1128*cdf0e10cSrcweir UnoRuntime.areSame(test2Bb, test2Bc)); 1129*cdf0e10cSrcweir 1130*cdf0e10cSrcweir success &= test( 1131*cdf0e10cSrcweir "!test2Bc.equals(null)", 1132*cdf0e10cSrcweir !test2Bc.equals(null)); 1133*cdf0e10cSrcweir success &= test( 1134*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bc, null)", 1135*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bc, null)); 1136*cdf0e10cSrcweir success &= test( 1137*cdf0e10cSrcweir "!test2Bc.equals(test1Aa)", 1138*cdf0e10cSrcweir !test2Bc.equals(test1Aa)); 1139*cdf0e10cSrcweir success &= test( 1140*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bc, test1Aa)", 1141*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bc, test1Aa)); 1142*cdf0e10cSrcweir success &= test( 1143*cdf0e10cSrcweir "!test2Bc.equals(test1Ab)", 1144*cdf0e10cSrcweir !test2Bc.equals(test1Ab)); 1145*cdf0e10cSrcweir success &= test( 1146*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bc, test1Ab)", 1147*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bc, test1Ab)); 1148*cdf0e10cSrcweir success &= test( 1149*cdf0e10cSrcweir "!test2Bc.equals(test1Ac)", 1150*cdf0e10cSrcweir !test2Bc.equals(test1Ac)); 1151*cdf0e10cSrcweir success &= test( 1152*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bc, test1Ac)", 1153*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bc, test1Ac)); 1154*cdf0e10cSrcweir success &= test( 1155*cdf0e10cSrcweir "!test2Bc.equals(test1Ba)", 1156*cdf0e10cSrcweir !test2Bc.equals(test1Ba)); 1157*cdf0e10cSrcweir success &= test( 1158*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bc, test1Ba)", 1159*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bc, test1Ba)); 1160*cdf0e10cSrcweir success &= test( 1161*cdf0e10cSrcweir "!test2Bc.equals(test1Bb)", 1162*cdf0e10cSrcweir !test2Bc.equals(test1Bb)); 1163*cdf0e10cSrcweir success &= test( 1164*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bc, test1Bb)", 1165*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bc, test1Bb)); 1166*cdf0e10cSrcweir success &= test( 1167*cdf0e10cSrcweir "!test2Bc.equals(test1Bc)", 1168*cdf0e10cSrcweir !test2Bc.equals(test1Bc)); 1169*cdf0e10cSrcweir success &= test( 1170*cdf0e10cSrcweir "!UnoRuntime.areSame(test2Bc, test1Bc)", 1171*cdf0e10cSrcweir !UnoRuntime.areSame(test2Bc, test1Bc)); 1172*cdf0e10cSrcweir success &= test( 1173*cdf0e10cSrcweir "test2Bc.equals(test2Aa)", 1174*cdf0e10cSrcweir test2Bc.equals(test2Aa)); 1175*cdf0e10cSrcweir success &= test( 1176*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bc, test2Aa)", 1177*cdf0e10cSrcweir UnoRuntime.areSame(test2Bc, test2Aa)); 1178*cdf0e10cSrcweir success &= test( 1179*cdf0e10cSrcweir "test2Bc.equals(test2Ab)", 1180*cdf0e10cSrcweir test2Bc.equals(test2Ab)); 1181*cdf0e10cSrcweir success &= test( 1182*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bc, test2Ab)", 1183*cdf0e10cSrcweir UnoRuntime.areSame(test2Bc, test2Ab)); 1184*cdf0e10cSrcweir success &= test( 1185*cdf0e10cSrcweir "test2Bc.equals(test2Ac)", 1186*cdf0e10cSrcweir test2Bc.equals(test2Ac)); 1187*cdf0e10cSrcweir success &= test( 1188*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bc, test2Ac)", 1189*cdf0e10cSrcweir UnoRuntime.areSame(test2Bc, test2Ac)); 1190*cdf0e10cSrcweir success &= test( 1191*cdf0e10cSrcweir "test2Bc.equals(test2Ba)", 1192*cdf0e10cSrcweir test2Bc.equals(test2Ba)); 1193*cdf0e10cSrcweir success &= test( 1194*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bc, test2Ba)", 1195*cdf0e10cSrcweir UnoRuntime.areSame(test2Bc, test2Ba)); 1196*cdf0e10cSrcweir success &= test( 1197*cdf0e10cSrcweir "test2Bc.equals(test2Bb)", 1198*cdf0e10cSrcweir test2Bc.equals(test2Bb)); 1199*cdf0e10cSrcweir success &= test( 1200*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bc, test2Bb)", 1201*cdf0e10cSrcweir UnoRuntime.areSame(test2Bc, test2Bb)); 1202*cdf0e10cSrcweir success &= test( 1203*cdf0e10cSrcweir "test2Bc.equals(test2Bc)", 1204*cdf0e10cSrcweir test2Bc.equals(test2Bc)); 1205*cdf0e10cSrcweir success &= test( 1206*cdf0e10cSrcweir "UnoRuntime.areSame(test2Bc, test2Bc)", 1207*cdf0e10cSrcweir UnoRuntime.areSame(test2Bc, test2Bc)); 1208*cdf0e10cSrcweir 1209*cdf0e10cSrcweir success &= test( 1210*cdf0e10cSrcweir "test1Aa.hashCode() == test1Ab.hashCode()", 1211*cdf0e10cSrcweir test1Aa.hashCode() 1212*cdf0e10cSrcweir == test1Ab.hashCode()); 1213*cdf0e10cSrcweir success &= test( 1214*cdf0e10cSrcweir "test1Aa.hashCode()" 1215*cdf0e10cSrcweir + " == test1Ac.hashCode()", 1216*cdf0e10cSrcweir test1Aa.hashCode() 1217*cdf0e10cSrcweir == test1Ac.hashCode()); 1218*cdf0e10cSrcweir success &= test( 1219*cdf0e10cSrcweir "test1Aa.hashCode()" 1220*cdf0e10cSrcweir + " == test1Ba.hashCode()", 1221*cdf0e10cSrcweir test1Aa.hashCode() 1222*cdf0e10cSrcweir == test1Ba.hashCode()); 1223*cdf0e10cSrcweir success &= test( 1224*cdf0e10cSrcweir "test1Aa.hashCode()" 1225*cdf0e10cSrcweir + " == test1Bb.hashCode()", 1226*cdf0e10cSrcweir test1Aa.hashCode() 1227*cdf0e10cSrcweir == test1Bb.hashCode()); 1228*cdf0e10cSrcweir success &= test( 1229*cdf0e10cSrcweir "test1Aa.hashCode()" 1230*cdf0e10cSrcweir + " == test1Bc.hashCode()", 1231*cdf0e10cSrcweir test1Aa.hashCode() 1232*cdf0e10cSrcweir == test1Bc.hashCode()); 1233*cdf0e10cSrcweir success &= test( 1234*cdf0e10cSrcweir "test2Aa.hashCode()" 1235*cdf0e10cSrcweir + " == test2Ab.hashCode()", 1236*cdf0e10cSrcweir test2Aa.hashCode() 1237*cdf0e10cSrcweir == test2Ab.hashCode()); 1238*cdf0e10cSrcweir success &= test( 1239*cdf0e10cSrcweir "test2Aa.hashCode()" 1240*cdf0e10cSrcweir + " == test2Ac.hashCode()", 1241*cdf0e10cSrcweir test2Aa.hashCode() 1242*cdf0e10cSrcweir == test2Ac.hashCode()); 1243*cdf0e10cSrcweir success &= test( 1244*cdf0e10cSrcweir "test2Aa.hashCode()" 1245*cdf0e10cSrcweir + " == test2Ba.hashCode()", 1246*cdf0e10cSrcweir test2Aa.hashCode() 1247*cdf0e10cSrcweir == test2Ba.hashCode()); 1248*cdf0e10cSrcweir success &= test( 1249*cdf0e10cSrcweir "test2Aa.hashCode()" 1250*cdf0e10cSrcweir + " == test2Bb.hashCode()", 1251*cdf0e10cSrcweir test2Aa.hashCode() 1252*cdf0e10cSrcweir == test2Bb.hashCode()); 1253*cdf0e10cSrcweir success &= test( 1254*cdf0e10cSrcweir "test2Aa.hashCode()" 1255*cdf0e10cSrcweir + " == test2Bc.hashCode()", 1256*cdf0e10cSrcweir test2Aa.hashCode() 1257*cdf0e10cSrcweir == test2Bc.hashCode()); 1258*cdf0e10cSrcweir 1259*cdf0e10cSrcweir done.notifyDone(); 1260*cdf0e10cSrcweir testBed.serverDone(success); 1261*cdf0e10cSrcweir } catch (Exception e) { 1262*cdf0e10cSrcweir e.printStackTrace(System.err); 1263*cdf0e10cSrcweir } 1264*cdf0e10cSrcweir }; 1265*cdf0e10cSrcweir 1266*cdf0e10cSrcweir private /*static*/ boolean test( 1267*cdf0e10cSrcweir String message, boolean condition) 1268*cdf0e10cSrcweir { 1269*cdf0e10cSrcweir if (!condition) { 1270*cdf0e10cSrcweir System.err.println("Failed: " + message); 1271*cdf0e10cSrcweir } 1272*cdf0e10cSrcweir return condition; 1273*cdf0e10cSrcweir } 1274*cdf0e10cSrcweir }.start(); 1275*cdf0e10cSrcweir } 1276*cdf0e10cSrcweir }; 1277*cdf0e10cSrcweir } 1278*cdf0e10cSrcweir 1279*cdf0e10cSrcweir private final TestBed testBed; 1280*cdf0e10cSrcweir private final String unoTypes; 1281*cdf0e10cSrcweir private final String unoServices; 1282*cdf0e10cSrcweir } 1283*cdf0e10cSrcweir 1284*cdf0e10cSrcweir public interface XDone extends XInterface { 1285*cdf0e10cSrcweir void notifyDone(); 1286*cdf0e10cSrcweir 1287*cdf0e10cSrcweir TypeInfo[] UNOTYPEINFO = { new MethodTypeInfo("notifyDone", 0, 0) }; 1288*cdf0e10cSrcweir } 1289*cdf0e10cSrcweir 1290*cdf0e10cSrcweir public interface XTestFrame extends XInterface { 1291*cdf0e10cSrcweir void notifyAccepting(XDone done, Object object1, Object object2); 1292*cdf0e10cSrcweir 1293*cdf0e10cSrcweir TypeInfo[] UNOTYPEINFO = { 1294*cdf0e10cSrcweir new MethodTypeInfo("notifyAccepting", 0, TypeInfo.ONEWAY) }; 1295*cdf0e10cSrcweir } 1296*cdf0e10cSrcweir 1297*cdf0e10cSrcweir // Use "127.0.0.1" instead of "localhost", see #i32281#: 1298*cdf0e10cSrcweir private static final String CONNECTION_DESCRIPTION 1299*cdf0e10cSrcweir = "socket,host=127.0.0.1,port=12346"; 1300*cdf0e10cSrcweir private static final String PROTOCOL_DESCRIPTION = "urp"; 1301*cdf0e10cSrcweir 1302*cdf0e10cSrcweir private static final String INSTANCE1 = "instance1"; 1303*cdf0e10cSrcweir private static final String INSTANCE2 = "instance2"; 1304*cdf0e10cSrcweir } 1305