Example usage for org.apache.commons.cli AlreadySelectedException AlreadySelectedException

List of usage examples for org.apache.commons.cli AlreadySelectedException AlreadySelectedException

Introduction

In this page you can find the example usage for org.apache.commons.cli AlreadySelectedException AlreadySelectedException.

Prototype

public AlreadySelectedException(String message) 

Source Link

Document

Construct a new AlreadySelectedException with the specified detail message.

Usage

From source file:com.examples.with.different.packagename.DependencyLibrary.java

public void foo() {
    //here, at compile time we use the one in EvoSuite dependency, but not at runtime
    AlreadySelectedException e = new AlreadySelectedException(null);
    if (e.toString().equals("foo")) {
        System.out.println("Only executed if SUT version is used, and not the one in EvoSuite's dependencies");
    }//from   w ww  .  j ava2s  .  c o  m
}