private static EmbeddedJettyConfiguration extractConfiguration(Class<?> testClass, AbstractConfiguration configuration) {
		final AbstractConfiguration configurationToUse = configuration == null ? findConfiguration(testClass) : configuration;

		if (configurationToUse == null) {
			return null;
		}

		if (!(configurationToUse instanceof EmbeddedJettyConfiguration)) {
			throw new IllegalJettyConfigurationException();
		}

		return (EmbeddedJettyConfiguration) configurationToUse;
	}
private static EmbeddedJettyConfiguration extractConfiguration(Class<?> testClass, AbstractConfiguration configuration) {
		final AbstractConfiguration configurationToUse = configuration == null ? findConfiguration(testClass) : configuration;

		if (configurationToUse == null) {
			return null;
		}

		if (!(configurationToUse instanceof EmbeddedJettyConfiguration)) {
			throw new IllegalJettyConfigurationException();
		}

		return (EmbeddedJettyConfiguration) configurationToUse;
	}
private static EmbeddedJettyConfiguration extractConfiguration ( Class < ? > testClass , AbstractConfiguration configuration ) { final AbstractConfiguration configurationToUse = configuration == null ? findConfiguration ( testClass ) : configuration ; if ( configurationToUse == null ) { return null ; } if ( ! ( configurationToUse instanceof EmbeddedJettyConfiguration ) ) { throw new IllegalJettyConfigurationException ( ) ; } return ( EmbeddedJettyConfiguration ) configurationToUse ; }
Try to extract {@link EmbeddedJetty} configuration from:
<ul>
<li>The given {@code configuration} if it is not {@code null}.</li>
<li>A class field/method annotated with {@link com.github.mjeanroy.junit.servers.annotations.TestServerConfiguration} on given {@code testClass} otherwise.</li>
</ul>

@param testClass The test class to analyze.
@param configuration The configuration to use if not {@code null}.
@return The {@link EmbeddedJetty} configuration.
@throws IllegalJettyConfigurationException If extracted {@code configuration} is not an instance of {@link EmbeddedJettyConfiguration}.
Try to extract { @link EmbeddedJetty } configuration from : <ul > <li > The given { @code configuration } if it is not { @code null } . < / li > <li > A class field / method annotated with { @link com . github . mjeanroy . junit . servers . annotations . TestServerConfiguration } on given { @code testClass } otherwise . < / li > < / ul >