Skip to content

Package: TestClient

TestClient

nameinstructionbranchcomplexitylinemethod
TestClient(TestDescriptor, VersionProcessor, TransportSet, Script, boolean)
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 7 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2022 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.model;
12:
13: import com.sun.istack.NotNull;
14: import com.sun.istack.test.VersionProcessor;
15:
16: /**
17: * A test script that plays the role of the client.
18: *
19: * TODO: needs to support clients that run inside a container (for testing Transaction)
20: *
21: * @author Kohsuke Kawaguchi
22: */
23: public class TestClient {
24: /**
25: * Versions to which this client test applies.
26: */
27: @NotNull
28: public final VersionProcessor applicableVersions;
29:
30: /**
31: * The BeanShell script to be executed.
32: */
33: @NotNull
34: public final Script script;
35:
36: /**
37: * {@link TestDescriptor} to which this {@link TestClient} belongs.
38: */
39: @NotNull
40: public final TestDescriptor parent;
41:
42: /**
43: * If true, it indicates that this test doesn't leave any side-effect
44: * on the client or the server. With a proper option,
45: * multiple instances of the same test will run in parallel to test
46: * the behaviors in the concurrent environment.
47: */
48: public final boolean sideEffectFree;
49:
50: public final TransportSet supportedTransport;
51:
52: public TestClient(TestDescriptor parent, VersionProcessor applicableVersions, TransportSet supportedTransport, Script script, boolean sideEffectFree) {
53: this.parent = parent;
54: this.applicableVersions = applicableVersions;
55: this.supportedTransport = supportedTransport;
56: this.script = script;
57: this.sideEffectFree = sideEffectFree;
58: }
59: }