forked from testng-team/testng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreationAttributes.java
43 lines (34 loc) · 1.08 KB
/
CreationAttributes.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.testng.internal.objects.pojo;
import org.testng.ITestContext;
import org.testng.internal.invokers.objects.GuiceContext;
/** Represents the parameters that are associated with object creation. */
public class CreationAttributes {
private final BasicAttributes basic;
private final DetailedAttributes detailed;
private final ITestContext context;
private final GuiceContext suiteContext;
public CreationAttributes(ITestContext ctx, BasicAttributes basic, DetailedAttributes detailed) {
this.basic = basic;
this.detailed = detailed;
this.context = ctx;
this.suiteContext = null;
}
public CreationAttributes(BasicAttributes basic, GuiceContext suiteContext) {
this.basic = basic;
this.detailed = null;
this.context = null;
this.suiteContext = suiteContext;
}
public DetailedAttributes getDetailedAttributes() {
return detailed;
}
public BasicAttributes getBasicAttributes() {
return basic;
}
public ITestContext getContext() {
return context;
}
public GuiceContext getSuiteContext() {
return suiteContext;
}
}