You can edit almost every page by Creating an account. Otherwise, see the FAQ.

Cuppa (Java library)

From EverybodyWiki Bios & Wiki

Cuppa
Developer(s)Joe Bandenburg, Phill Cunnington
Stable release
1.0.0[1] / March 22, 2016 (2016-03-22)
Written inJava
Engine
    Operating systemCross-platform
    TypeUnit testing tool
    LicenseApache 2.0[2]
    Websitecuppa.forgerock.org

    Search Cuppa (Java library) on Amazon.

    Cuppa is a behavior-driven development (BDD) unit testing framework for the Java programming language version 8. The framework uses features introduced in version 8 of the language, such as lambdas. It is inspired by Mocha.[3]

    Cuppa is linked as a JAR at compile-time; the framework resides under the package org.forgerock.cuppa.

    Example of a Cuppa test class[edit]

    A Cuppa test class is a Java object annotated with the @Test annotation.

    import org.forgerock.cuppa.Cuppa.*;
    
    @Test
    public class ListTest {
        describe("List", () -> {
            describe("#indexOf", () -> {
                it("returns -1 when the value is not present", () -> {
                    List<Integer> list = Arrays.asList(1, 2, 3);
                    assertThat(list.indexOf(5)).isEqualTo(-1);
                });
            });
        });
    }
    

    See also[edit]

    • JUnit, another test framework for Java
    • RSpec, a similar test framework for Ruby

    Some use of "" in your query was not closed by a matching "".Some use of "" in your query was not closed by a matching "".

    References[edit]

    1. Cuppa Releases
    2. "Add Apache 2.0 License · cuppa-framework/cuppa@d200a75". Phill Cunnington. 17 January 2016. Retrieved 22 March 2016.
    3. "cuppa/README.md at 8180488f356f52a4f6bd640bd0ce3e1e0b63ed8e · cuppa-framework/cuppa". GitHub. 2016-01-25. Retrieved 2016-03-22.

    External links[edit]


    This article "Cuppa (Java library)" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Cuppa (Java library). Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.