Home | History | Annotate | Download | only in junit

Lines Matching refs:configuration

51  * Run configuration that can execute JUnit tests on an Android platform.
69 protected void doLaunch(final ILaunchConfiguration configuration, final String mode,
75 String runner = getRunner(project, configuration, manifestData);
95 junitLaunchInfo.setTestClass(getTestClass(configuration));
96 junitLaunchInfo.setTestPackage(getTestPackage(configuration));
97 junitLaunchInfo.setTestMethod(getTestMethod(configuration));
99 junitLaunchInfo.setTestSize(getTestSize(configuration));
141 * Returns the test package stored in the launch configuration, or <code>null</code> if not
144 * @param configuration the {@link ILaunchConfiguration} to retrieve the test package info from
147 private String getTestPackage(ILaunchConfiguration configuration) {
150 JUnitLaunchConfigurationConstants.ATTR_TEST_CONTAINER, configuration);
162 * Returns the test class stored in the launch configuration.
164 * @param configuration the {@link ILaunchConfiguration} to retrieve the test class info from
167 private String getTestClass(ILaunchConfiguration configuration) {
169 configuration);
173 * Returns the test method stored in the launch configuration.
175 * @param configuration the {@link ILaunchConfiguration} to retrieve the test method info from
178 private String getTestMethod(ILaunchConfiguration configuration) {
180 configuration);
184 * Returns the test sizes to run as saved in the launch configuration.
188 private TestSize getTestSize(ILaunchConfiguration configuration) {
191 configuration);
209 * If a runner is stored in the given <code>configuration</code>, will return that.
215 * @param configuration the {@link ILaunchConfiguration} for the launch
221 private String getRunner(IProject project, ILaunchConfiguration configuration,
224 String runner = getRunnerFromConfig(configuration);
250 private String getRunnerFromConfig(ILaunchConfiguration configuration) {
251 return getStringLaunchAttribute(ATTR_INSTR_NAME, configuration);
255 * Helper method to retrieve a string attribute from the launch configuration
258 * @param configuration the {@link ILaunchConfiguration} to retrieve the attribute from
262 ILaunchConfiguration configuration) {
264 String attrValue = configuration.getAttribute(attributeName, EMPTY_STRING);
279 * @param config the launch configuration to modify