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

io.github.laskowski.shell.output.messages.MessageContains Maven / Gradle / Ivy

Go to download

Library to launch .bat and .sh scripts of your choice with different configurations. Allows you to read tasks and services output from terminal

There is a newer version: 2.0.6.1
Show newest version
package io.github.laskowski.shell.output.messages;

import io.github.laskowski.shell.output.service.ServiceReadyPredicate;

public class MessageContains implements ServiceReadyPredicate, ServiceErrorPredicate {
    private final String expected;

    public MessageContains(String expected) {
        this.expected = expected;
    }

    @Override
    public boolean test(String s) {
        return s.contains(expected);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy