Examples of VerificationException


Examples of com.cloudseal.client.saml2.VerificationException

    @Test
    public void testUnsuccessfulAuthentication() throws VerificationException {
        CloudsealAssertionAuthenticationToken token = new CloudsealAssertionAuthenticationToken("http://localhost:8080/saml/sp", "123", "SAMLResponse");
        when(cloudsealManager.getPublicKey()).thenReturn(publicKey);
        when(authResponseValidator.validateAuthResponse(any(PublicKey.class), anyString(), anyString(), anyString())).thenThrow(new VerificationException("oops"));
        classUnderTest.setCloudsealManager(cloudsealManager);
        classUnderTest.setResponseValidator(authResponseValidator);

        try {
            classUnderTest.authenticate(token);
View Full Code Here

Examples of com.github.dreamhead.moco.VerificationException

    @Override
    public void verify(final VerificationData data) {
        int actualSize = data.matchedSize();
        if (!meet(actualSize)) {
            throw new VerificationException(data.mismatchDescription(actualSize, expectedTip()));
        }
    }
View Full Code Here

Examples of org.apache.maven.it.VerificationException

    private void assertTestnamesAppearInSpecificOrder( OutputValidator validator, String[] testnames )
        throws VerificationException
    {
        if ( !validator.stringsAppearInSpecificOrderInLog( testnames ) )
        {
            throw new VerificationException( "Response does not contain expected item" );
        }
    }
View Full Code Here

Examples of org.apache.maven.it.VerificationException

    private void assertTestnamesAppearInSpecificOrder( OutputValidator validator, String[] testnames )
        throws VerificationException
    {
        if ( !validator.stringsAppearInSpecificOrderInLog( testnames ) )
        {
            throw new VerificationException( "Response does not contain expected item" );
        }
    }
View Full Code Here

Examples of org.apache.maven.it.VerificationException

    private void assertTestnamesAppearInSpecificOrder( OutputValidator validator, String[] testnames )
        throws VerificationException
    {
        if ( !validator.stringsAppearInSpecificOrderInLog( testnames ) )
        {
            throw new VerificationException( "Response does not contain expected item" );
        }
    }
View Full Code Here

Examples of org.apache.maven.it.VerificationException

          log.error("Failed to execute goals", e);

          // HACK: Strip out the entire log which is included in the message by default! :-(
          File logFile = new File(getBasedir(), getLogFileName());
          if (logFile.exists()) {
            throw new VerificationException(
                "Goals execution failed: " + goals + "; see log for more details: " + logFile.getAbsolutePath(),
                e.getCause());
          }
          else {
            // HACK: seems like maven-verifier is pretty bad about ensure there is a log file for the execution
            throw new VerificationException("Goals execution failed: " + goals + "; log file missing!", e.getCause());
          }
        }
      }
    };
    verifier.setLogFileName(mavenDeployment.getLogFileName());
View Full Code Here

Examples of org.apache.maven.it.VerificationException

        // calls method to apply certain changes to the generated
        // project (changing imports, etc)
        try {
            applyProjectModifications();
        } catch (Exception e) {
            throw new VerificationException("Error applying project modifications", e);
        }

        // attempts to perform 'mvn compile' on the generated
        // archetype to verify it's working without errors
        verifier = new Verifier(
View Full Code Here

Examples of org.apache.maven.it.VerificationException

                parser.parse( is, this );
            }
            catch ( FileNotFoundException e )
            {
                throw new VerificationException( e );
            }
            catch ( IOException e )
            {
                throw new VerificationException( e );
            }
            catch ( ParserConfigurationException e )
            {
                throw new VerificationException( e );
            }
            catch ( SAXException e )
            {
                throw new VerificationException( e );
            }
        }
View Full Code Here

Examples of org.apache.maven.it.VerificationException

                Properties envVars = CommandLineUtils.getSystemEnvVars();
                defaultMavenHome = envVars.getProperty( "M2_HOME" );
            }
            catch ( IOException e )
            {
                throw new VerificationException( "Cannot read system environment variables.", e );
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.it.VerificationException

            String line = i.next();

            // A hack to keep stupid velocity resource loader errors from triggering failure
            if ( line.indexOf( "[ERROR]" ) >= 0 && !isVelocityError( line ) )
            {
                throw new VerificationException( "Error in execution: " + line );
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.