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

com.pdsl.testcases.TestBodyFragment Maven / Gradle / Ivy

Go to download

The Polymorphic DSL test framework was designed to solve the challenges with testing large, complex systems. Modern architecture requires software to run as distrubited systems or on multiple platforms. The conventional cost of testing these systems is quite high. PDSL allows a user to describe the system under test using a DSL of some kind: a picture, sentences in natural languages, graphs, etc. Using a common DSL allows someone to make deeply scalable tests. A simple change to the DSL could generate dozens of tests providing coverage through many layers of the test pyramid or even multiple applications.

There is a newer version: 1.7.2
Show newest version
package com.pdsl.testcases;

import com.pdsl.specifications.FilteredPhrase;

import java.io.InputStream;
import java.util.List;
import java.util.Optional;


public class TestBodyFragment {

    private final Optional metadata;
    private final List testPhrases;

    public TestBodyFragment(InputStream metadata, List testPhrases) {
        this.metadata = Optional.ofNullable(metadata);
        this.testPhrases = testPhrases;
    }

    public TestBodyFragment(List testPhrases) {
        this.metadata = Optional.empty();
        this.testPhrases = testPhrases;
    }

    public Optional getMetaData() {
        return metadata;
    }

    public List getTestPhrases() {
        return testPhrases;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy