Example usage for java.lang Package equals

List of usage examples for java.lang Package equals

Introduction

In this page you can find the example usage for java.lang Package equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

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;
}