Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.jboss.integration.example;
 
 import  org.jboss.arquillian.container.test.api.Deployment;
 import  org.jboss.arquillian.junit.Arquillian;
 import  org.jboss.shrinkwrap.api.ShrinkWrap;
 import  org.jboss.shrinkwrap.api.asset.EmptyAsset;
 import  org.jboss.shrinkwrap.api.spec.JavaArchive;
 import  org.junit.Assert;
 import  org.junit.Ignore;
import  org.junit.Test;
import  org.junit.runner.RunWith;
import  javax.inject.Inject;
@Ignore @RunWith(Arquillian.class)
public class GreeterTest {
    @Deployment
    public static JavaArchive createDeployment() {
        JavaArchive jar = ShrinkWrap.create(JavaArchive.class)
                         .addClasses(Greeter.classPhraseBuilder.class)
                         .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
        ..println(jar.toString(true));
        return jar;
    }
    @Inject
    Greeter greeter;
    @Test
    public void testShouldCreateGreeting() {
        Assert.assertEquals("Hello, Earthling!",
                            .createGreeting("Earthling"));
        .greet(."Earthling");
    }
New to GrepCode? Check out our FAQ X