List of usage examples for java.lang AssertionError AssertionError
public AssertionError()
From source file:demo.support.NavUtils.java
/** Private Constructor. * Suppress default constructor for non-instantiability */ private NavUtils() { throw new AssertionError(); }
From source file:org.eclipse.swordfish.core.test.util.base.BaseMavenOsgiTestCase.java
protected static String getBundleVersion(String groupId, String artifactId) { Properties dependencies = null; InputStream inputStream = null; try {//from ww w .java 2 s . c om inputStream = BaseMavenOsgiTestCase.class.getClassLoader() .getResource("META-INF/maven/dependencies.properties").openStream(); Properties prop = new Properties(); prop.load(inputStream); dependencies = prop; } catch (IOException e) { throw new IllegalStateException("Unable to load dependencies informations", e); } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { throw new AssertionError(); } } } String version = dependencies.getProperty(groupId + "/" + artifactId + "/version"); if (version == null) { throw new IllegalStateException( "Unable to find dependency information for: " + groupId + "/" + artifactId + "/version"); } return version; }
From source file:sipackage.config.xml.SIAdapterUpperPrefixParserUtils.java
/** Prevent instantiation. */ private SIAdapterUpperPrefixParserUtils() { throw new AssertionError(); }
From source file:org.sentilo.common.utils.RESTUtils.java
private RESTUtils() { throw new AssertionError(); }
From source file:org.cloudfoundry.maven.common.CommonUtils.java
/** * Prevent instantiation. */ private CommonUtils() { throw new AssertionError(); }
From source file:mixi4j.internal.util.z_M4JInternalParseUtil.java
private z_M4JInternalParseUtil() { // should never be instantiated throw new AssertionError(); }
From source file:com.cognifide.qa.bb.expectedconditions.CommonExpectedConditions.java
private CommonExpectedConditions() { throw new AssertionError(); }
From source file:org.sentilo.common.utils.URIUtils.java
private URIUtils() { throw new AssertionError(); }
From source file:es.bsc.demiurge.core.utils.CommandExecutor.java
private CommandExecutor() { throw new AssertionError(); }
From source file:com.nwn.NwnFileHandler.java
private NwnFileHandler() { throw new AssertionError(); }