Пример #1
0
        public virtual bool isReloginException(BClient client, Exception ex, int typeId)
        {
            if (typeId == BRequest_IXServicePortIF_sendEvents.serialVersionUID ||
                typeId == BRequest_IXServicePortIF_createEventBusListener.serialVersionUID)
            {
                return(false);
            }

            if (client.getTransport().isReloginException(ex, BRegistry.TYPEID_VOID))
            {
                return(true);
            }

            String msg = ex.ToString();

            for (int i = 0; i < RELOGIN_ERRORS.Length; i++)
            {
                if (msg.IndexOf(RELOGIN_ERRORS[i]) >= 0)
                {
                    return(true);
                }
            }

            return(false);
        }
Пример #2
0
	    public static void checkTempDirEmpty(BClient client) 
        {
		    log.info("check temp dir is empty");
		    String[] tempFiles = client.getTransport().getWire().getTestAdapter().getServerTempFiles();
		    TestUtils.assertEquals(log, "temp files", new String[0], tempFiles);
	    }
 public bool isReloginException(BClient client, Exception ex, int typeId)
 {
     return(client.getTransport().isReloginException(ex, typeId));
 }
Пример #4
0
 public static void checkTempDirEmpty(BClient client)
 {
     log.info("check temp dir is empty");
     String[] tempFiles = client.getTransport().getWire().getTestAdapter().getServerTempFiles();
     TestUtils.assertEquals(log, "temp files", new String[0], tempFiles);
 }