Skip to content

Instantly share code, notes, and snippets.

@O5ten
Last active August 29, 2015 14:13
Show Gist options
  • Save O5ten/796dd06fb2f5732bada6 to your computer and use it in GitHub Desktop.
Save O5ten/796dd06fb2f5732bada6 to your computer and use it in GitHub Desktop.
Dagens metod.
private void verifyObjectIsValid() {
Object object = test.getFacade().getObject();
if (object.getObject() == null || object.getAnotherObject() == null) {
throw new IllegalStateException("Object: Invalid object: object=" + object.getAnotherObject()
+ ", Load Profile: " + object.getObject());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment