private void onlyOne()

in src/main/org/apache/ant/antunit/ResourceExists.java [81:85]


    private void onlyOne() {
        if (resource != null || refid != null) {
            throw new BuildException("Only one resource can be tested.");
        }
    }