-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathQuickTest.java
More file actions
54 lines (41 loc) · 1.94 KB
/
QuickTest.java
File metadata and controls
54 lines (41 loc) · 1.94 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
package automationtests.testingautomationtests;
/*
Created by ford.arnett on 4/1/16.
*/
import testmain.TestMain;
import automationtests.assertions.AssertionPayload;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
public class QuickTest extends TestMain {
@BeforeClass
public void setup() {
}
@Test
public void quickTest(){
//assertionLogger.addMessage("This is a quick and pointless test, used to test the automation suite is working as intended");
//assertionLogger.setTestType("Pointless test");
//assertionLogger.assertEquals("42", "42");
System.out.println("something");
String myString = "hello";
}
@Test
public void quickTestAssertionsFail(){
am.assertions.generalAssertion(new AssertionPayload(true, "This is a test using the frameworks general assertions to verify behavior.", ""));
am.assertions.generalAssertion(new AssertionPayload(false, "", "This is a test using the frameworks general assertions to verify behavior, testing fail"));
am.assertions.generalAssertion(new AssertionPayload(true, "This is a test using the frameworks general assertions to verify behavior.", ""));
}
@Test
public void quickTestAssertionsPass(){
am.assertions.generalAssertion(new AssertionPayload(true, "This is a test using the frameworks general assertions to verify behavior.", ""));
am.assertions.generalAssertion(new AssertionPayload(true, "This is a test using the frameworks general assertions to verify behavior.", ""));
am.assertions.generalAssertion(new AssertionPayload(true, "This is a test using the frameworks general assertions to verify behavior.", ""));
}
@Test
public void testUnexpectedFail() throws Exception {
throw new Exception("This represents a fail we didn't expect");
}
@AfterClass
public void tearDown() {
}
}