Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.example.api.kiecontainerfromkierepo;
 
 import  org.junit.Ignore;
 import  org.junit.Test;
 
 
 import static org.junit.Assert.assertEquals;
    private static final String NL = System.getProperty("line.separator");
    
    @Test
    @Ignore
    public void testGo() {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        PrintStream ps = new PrintStream(baos);
        new KieContainerFromKieRepoExample().go(ps);
        ps.close();
        String actual = new String(baos.toByteArray());
        String expected = "" +
                          "Dave: Hello, HAL. Do you read me, HAL?" +  +
                          "HAL: Dave. I read you." + ;
        assertEquals(expectedactual);
    }
New to GrepCode? Check out our FAQ X