@Test public void testNoAnnotations() throws Exception { InvocationDescriptor descriptor = new InvocationDescriptor.Builder(currMethod).build(); assertNull(descriptor.getBeforeSeverity()); assertNull(descriptor.getAfterSeverity()); assertNull(descriptor.getExceptionAnnotation()); }
@Test @LogDebug public void testGetSeverity() throws Exception { InvocationDescriptor descriptor = new InvocationDescriptor.Builder(currMethod).build(); assertSame(Severity.DEBUG, descriptor.getBeforeSeverity()); assertSame(Severity.DEBUG, descriptor.getAfterSeverity()); assertNull(descriptor.getExceptionAnnotation()); }
@Test @LogInfo(LogPoint.OUT) @LogDebug(LogPoint.OUT) public void testGetAfterSeverityByPriority() throws Exception { InvocationDescriptor descriptor = new InvocationDescriptor.Builder(currMethod).build(); assertSame(Severity.INFO, descriptor.getAfterSeverity()); assertNull(descriptor.getBeforeSeverity()); assertNull(descriptor.getExceptionAnnotation()); }