-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignmnet183.java
More file actions
81 lines (48 loc) · 1.16 KB
/
Assignmnet183.java
File metadata and controls
81 lines (48 loc) · 1.16 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package TestNGCLAssignments;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
//WAP using all the annotation in a single class?
public class Assignmnet183 {
@BeforeSuite
static void BeforeSuit() {
System.out.println("BeforeSuit");
}
@BeforeTest
static void BeforeTest() {
System.out.println("BeforeTest");
}
@BeforeClass
static void Beforeclass() {
System.out.println("Beforeclass");
}
@BeforeMethod
static void BeforeMethod() {
System.out.println("BeforeMethod");
}
@Test
static void Test() {
System.out.println("Test");
}
@AfterSuite
static void aftersuit() {
System.out.println("aftersuit");
}
@BeforeSuite
static void aftertest() {
System.out.println("aftertest");
}
@AfterClass
static void afterclass() {
System.out.println("afterclass");
}
@AfterMethod
static void aftermethod() {
System.out.println("aftermethod");
}
}