private Fixture instantiateFirstValidFixtureClass(FixtureName fixtureName) throws Throwable { for (String each : fixtureName.getPotentialFixtureClassNames( fixturePathElements)) { try { return instantiateFixture(each); } catch (NoSuchFixtureException ignoreAndTryTheNextCandidate) { } } throw new NoSuchFixtureException(fixtureName.toString()); } }
private Fixture instantiateFirstValidFixtureClass(FixtureName fixtureName) throws Throwable { for (String each : fixtureName.getPotentialFixtureClassNames( fixturePathElements)) { try { return instantiateFixture(each); } catch (NoSuchFixtureException ignoreAndTryTheNextCandidate) { } } throw new NoSuchFixtureException(fixtureName.toString()); } }