Java Scrap Book  

Java Scrap Book > TestNG > Test Annotation

Test Annotation

@Test
@Test annotation defines a method a test method.

@Test Sample Code

package  com.javascrapbook.com;

import  org.testng.annotations.Test;
public class TestNGBasicTest {
@Test
public void basicDemoTest() {
System.out.println("This is basic test ");
    }
}

Result

This is basic test

Copyright © 2013-2017

javascrapbook.com is a computer science content service should not be treated as the publisher or speaker of any information provided by another Computer Science content provider.

Contact email: javascrapbook2013@gmail.com