Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2015 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ba851032a2e3b618c5d2 to your computer and use it in GitHub Desktop.
Save anonymous/ba851032a2e3b618c5d2 to your computer and use it in GitHub Desktop.
CdiJunit4TestRunner
package de.openknowledge.blog.property;
import static org.junit.Assert.assertEquals;
import javax.inject.Inject;
import org.junit.Test;
import org.junit.runner.RunWith;
import de.openknowledge.cdi.test.CdiJunit4TestRunner;
@RunWith(CdiJunit4TestRunner.class)
public class ApplicationTest {
@Inject
private Application application;
@Test
public void getName() {
assertEquals("Property-Injection mit CDI", application.getName());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment