Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.logging.util;
 
 import org.junit.Test;
 
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

Tests the ILoggingBarrier.AllowAllBarrier

Author(s):
miha
public class AllowAllBarrierTest {
    @Before
    public void setUp() throws Exception {
         = new ILoggingBarrier.AllowAllBarrier();
    }
    @Test
    public void isAllowOnSingleEventReturnsTrue() throws Exception {
        assertThat(.isAllowed((ClientSideLogObjectnull), is(true));
        assertThat(.isAllowed(Mocks.createClientSideLogObject()), is(true));
    }
    @Test
    public void isAllowOnMultipleEventReturnsTrue() throws Exception {
        assertThat(.isAllowed((Collection<ClientSideLogObject>) null), is(true));
        assertThat(.isAllowed(Sets.newHashSet(Mocks.createClientSideLogObject())), is(true));
    }
New to GrepCode? Check out our FAQ X