private static EmbeddedTomcatConfiguration extractConfiguration(Class<?> klass) {
		AbstractConfiguration configuration = findConfiguration(klass);

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

		if (!(configuration instanceof EmbeddedTomcatConfiguration)) {
			throw new IllegalTomcatConfigurationException();
		}

		return (EmbeddedTomcatConfiguration) configuration;
	}
private static EmbeddedTomcatConfiguration extractConfiguration(Class<?> klass) {
		AbstractConfiguration configuration = findConfiguration(klass);

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

		if (!(configuration instanceof EmbeddedTomcatConfiguration)) {
			throw new IllegalTomcatConfigurationException();
		}

		return (EmbeddedTomcatConfiguration) configuration;
	}
private static EmbeddedTomcatConfiguration extractConfiguration ( Class < ? > klass ) { AbstractConfiguration configuration = findConfiguration ( klass ) ; if ( configuration == null ) { return null ; } if ( ! ( configuration instanceof EmbeddedTomcatConfiguration ) ) { throw new IllegalTomcatConfigurationException ( ) ; } return ( EmbeddedTomcatConfiguration ) configuration ; }
Try to extract {@link EmbeddedTomcat} configuration from the test class: search for a static
field/method annotated with {@link com.github.mjeanroy.junit.servers.annotations.TestServerConfiguration}).

@param klass The test class.
@return The {@link EmbeddedTomcat} configuration.
@throws IllegalTomcatConfigurationException If extracted annotation is not an instance of {@link EmbeddedTomcatConfiguration}.
Try to extract { @link EmbeddedTomcat } configuration from the test class : search for a static field / method annotated with { @link com . github . mjeanroy . junit . servers . annotations . TestServerConfiguration } ) .