Skip to content

Instantly share code, notes, and snippets.

@MosesMansaray
Created November 29, 2016 18:26
Show Gist options
  • Save MosesMansaray/effa14392c5c7f53e36a5826b803f5e4 to your computer and use it in GitHub Desktop.
Save MosesMansaray/effa14392c5c7f53e36a5826b803f5e4 to your computer and use it in GitHub Desktop.
/**
* 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