Import conflicting classes
()
| 150 | * Import conflicting classes |
| 151 | */ |
| 152 | @Test |
| 153 | public void testImportClass03() { |
| 154 | ImportHandler handler = new ImportHandler(); |
| 155 | |
| 156 | handler.importClass("org.apache.tomcat.util.ExceptionUtils"); |
| 157 | for (int i = 1; i <= 3; i++) { |
| 158 | try { |
| 159 | handler.importClass("org.apache.jasper.util.ExceptionUtils"); |
| 160 | Assert.fail("Expected ELException but got none on iteration " + i); |
| 161 | } catch (ELException ex) { |
| 162 | // Expected |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | |
| 168 | /** |
nothing calls this directly
no test coverage detected