All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sample.testng.TestNgStyle Maven / Gradle / Ivy

package sample.testng;

import org.testng.Assert;
import org.testng.annotations.Test;

import java.util.function.Function;

public class TestNgStyle {

    @Test
    void iAmTestWithAssert(){
        Assert.assertTrue(true);
    }

    @Test
    void iAmTestWithoutAssert(){
        Function toLowerCase = input -> input.toLowerCase();
        toLowerCase.apply("ZZZ");
    }

    @Test(enabled = false)
    void iAmDisabledTest(){
        Assert.assertTrue(true);
    }

    void iAmNotATest(){
        throw new UnsupportedOperationException();
    }

    @Deprecated
    void iAmNotATestButDeprecatedMethod(){
        throw new UnsupportedOperationException();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy