|
|
@ -88,14 +88,16 @@ public class LoggerServiceTest { |
|
|
|
//task instance is null
|
|
|
|
//task instance is null
|
|
|
|
try{ |
|
|
|
try{ |
|
|
|
loggerService.getLogBytes(2); |
|
|
|
loggerService.getLogBytes(2); |
|
|
|
}catch (Exception e){ |
|
|
|
}catch (RuntimeException e){ |
|
|
|
|
|
|
|
Assert.assertTrue(true); |
|
|
|
logger.error("testGetLogBytes error: {}","task instance is null"); |
|
|
|
logger.error("testGetLogBytes error: {}","task instance is null"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//task instance host is null
|
|
|
|
//task instance host is null
|
|
|
|
try{ |
|
|
|
try{ |
|
|
|
loggerService.getLogBytes(1); |
|
|
|
loggerService.getLogBytes(1); |
|
|
|
}catch (Exception e){ |
|
|
|
}catch (RuntimeException e){ |
|
|
|
|
|
|
|
Assert.assertTrue(true); |
|
|
|
logger.error("testGetLogBytes error: {}","task instance host is null"); |
|
|
|
logger.error("testGetLogBytes error: {}","task instance host is null"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|