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

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

Introduction

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

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

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  a  v a2  s.  co m
}