-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Expand file tree
/
Copy pathMyTest.java
More file actions
40 lines (33 loc) · 916 Bytes
/
MyTest.java
File metadata and controls
40 lines (33 loc) · 916 Bytes
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
import com.microsoft.demo.Demo;
import com.microsoft.demo.Pipeline_Test;
import org.junit.Test;
public class MyTest {
Pipeline_Test pt = new Pipeline_Test();
String s ="ABCDEFG";
@Test
public void test_method_1() {
Demo d = new Demo();
d.DoSomething(true);
}
@Test
public void test_method_2() {
}
@Test
public void test_method_3(){
String rev = pt.MyTestPipeline(s);
if (rev.length()==7)
System.out.println("Test Passed on Length");
}
@Test
public void test_check_length(){
String rev = pt.MyTestPipeline(s);
if (rev.length()<9)
System.out.println("Length Not Matching..!");
}
@Test
public void validateRandomPassword(){
char [] password = pt.random_password(10);
if(password.length==10)
System.out.println("Password Length Matched..!");
}
}