Created
March 11, 2013 20:19
-
-
Save edipofederle/5137372 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
| protected <T extends Element> void assertContains(List<T> list, String ... expected) { | |
| for (Element t : list) { | |
| String name = t.getName(); | |
| if(list.get(0) instanceof mestrado.arquitetura.representation.Package) | |
| for (String str : expected) if(str.equalsIgnoreCase(name)) return ; | |
| if(list.get(0) instanceof mestrado.arquitetura.representation.Class) | |
| for (String str : expected) if(str.equalsIgnoreCase(name)) return ; | |
| } | |
| Assert.fail("list there is no element called " + expected); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment