Examples of addProfile()


Examples of org.apache.maven.settings.Settings.addProfile()

        throws Exception
    {
        Settings settings = new Settings();
        Profile profile = new Profile();
        profile.setId( "pro" );
        settings.addProfile( profile );
        Repository repo1 = new Repository();
        repo1.setUrl( "http://apache.org/" );
        repo1.setId( "test" );
        profile.addRepository( repo1 );
        Repository repo2 = new Repository();
View Full Code Here

Examples of org.apache.maven.settings.Settings.addProfile()

    public void testValidate()
    {
        Settings model = new Settings();
        Profile prof = new Profile();
        prof.setId( "xxx" );
        model.addProfile( prof );
        SimpleProblemCollector problems = new SimpleProblemCollector();
        validator.validate( model, problems );
        assertEquals( 0, problems.messages.size() );

        Repository repo = new Repository();
View Full Code Here

Examples of org.apache.maven.settings.Settings.addProfile()

        repo = new Repository();
        repo.setId( "illegal\\:/chars" );
        repo.setUrl( "http://void" );
        profile.addRepository( repo );
        Settings settings = new Settings();
        settings.addProfile( profile );

        SimpleProblemCollector problems = new SimpleProblemCollector();
        validator.validate( settings, problems );
        assertEquals( 3, problems.messages.size() );
        assertContains( problems.messages.get( 0 ), "'repositories.repository.id' must not be 'local'" );
View Full Code Here

Examples of org.libreplan.business.users.entities.User.addProfile()

        Profile profile = createProfile(getUniqueName());
        profileDAO.save(profile);

        int previous = user.getProfiles().size();
        user.addProfile(profile);
        userDAO.save(user);
        assertEquals(previous + 1, userDAO.find(user.getId()).getProfiles().size());

        previous = user.getProfiles().size();
        user.removeProfile(profile);
View Full Code Here

Examples of org.milyn.profile.DefaultProfileSet.addProfile()

    ProfileTargetingExpression expression;

    // Add a few profiles
    profileSet1.addProfile("profile1");
    profileSet1.addProfile("profile2");
    profileSet2.addProfile("profile2");
    profileSet2.addProfile("accept:application/xhtml+xml");
   
    // Match against exact device name
    expression = new ProfileTargetingExpression("device1");
    assertTrue(expression.isMatch(profileSet1));
View Full Code Here

Examples of siia.business.Passenger.addProfile()

    @Test
    public void verifyTransformation() {
        Passenger payload = new Passenger();
        Profile profile = new Profile();
        profile.setEmailAddress(EMAIL_ADDRESS);
        payload.addProfile(profile);
        Message<Passenger> passengerToTransform = MessageBuilder.withPayload(payload).build();
        input.send(passengerToTransform);
        Message<Passenger> transformedPassenger = (Message<Passenger>) output.receive(0);
        assertEquals(transformedPassenger.getHeaders().get(MailHeaders.TO), EMAIL_ADDRESS);
    }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.report.interfaces.Report.addProfile()

           
            Map<String, GroupedFieldItem> groups = new LinkedHashMap<String, GroupedFieldItem>();
           
            for (String profileId : request.getProfileIds()) {
                ProfileInstance profile = profileContextLocator.getProfileInstance(profileId);
                report.addProfile(profile);
               
                ProfileInstanceManager profileInstanceManager =
                    profileContextLocator.openProfileInstanceManager(profile);
               
                Filter filterToUse = optionalFilter == null ? profile.getFilter() : optionalFilter;
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.