Created
July 9, 2015 07:32
-
-
Save anonymous/ba851032a2e3b618c5d2 to your computer and use it in GitHub Desktop.
CdiJunit4TestRunner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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