Package: PrepareExecutor

PrepareExecutor

nameinstructionbranchcomplexitylinemethod
PrepareExecutor(DeploymentContext, boolean)
M: 12 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
runTest()
M: 10 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package com.sun.xml.ws.test.exec;
12:
13: import com.sun.xml.ws.test.CodeGenerator;
14: import com.sun.xml.ws.test.container.DeploymentContext;
15:
16: /**
17: * {@link Executor} that cleans up the work directory (if necessary)
18: * and create directories (if necessary).
19: *
20: * This is needed to avoid picking up old artifacts from the previous test run.
21: *
22: * @author Kohsuke Kawaguchi
23: */
24: public class PrepareExecutor extends Executor {
25:
26: private final boolean clean;
27:
28: public PrepareExecutor(DeploymentContext context, boolean clean) {
29:• super(clean?"clean":"prepare", context);
30: this.clean = clean;
31: }
32:
33: public void runTest() throws Throwable {
34: CodeGenerator.testStarting(context.workDir);
35: context.prepare(clean);
36: }
37: }