Created
November 29, 2016 18:26
-
-
Save MosesMansaray/effa14392c5c7f53e36a5826b803f5e4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* For the days you want to be predantic | |
*/ | |
@Test | |
public void shouldHaveAPrivateConstructor() throws Exception { | |
Constructor constructor = EuroSemanticResponse.class.getDeclaredConstructor(); | |
assertTrue("Constructor is not private", Modifier.isPrivate(constructor.getModifiers())); | |
constructor.setAccessible(true); | |
constructor.newInstance(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment