List of usage examples for java.lang Package equals
public boolean equals(Object obj)
From source file:org.springframework.integration.test.coverage.AbstractChannelCoverageTests.java
@Before public void _setUp() { _applicationContext = _ctx;//w w w . j ava 2 s . c om String theClassName = this.getClass().getSimpleName(); Package thePackage = this.getClass().getPackage(); try { file = new RandomAccessFile(COVERAGE_FILE, "rw"); } catch (FileNotFoundException e) { e.printStackTrace(); throw new RuntimeException(e); } if (aggregatePackageTests ? !thePackage.equals(currentPackage) : !theClassName.equals(simpleClassName)) { traversedChannels = Collections.synchronizedSet(new HashSet<String>()); if (file != null) { try { seekPosition = file.length(); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } } } findAndInterceptChannels(); simpleClassName = theClassName; currentPackage = thePackage; }