Examples of Organization


Examples of org.apache.maven.model.Organization

    }


    public void testDefaultPropertiesIncludeOrganization()
    {
        final Organization organization = new Organization();
        organization.setName( "Example Organization" );
        organization.setUrl( "http://example.org" );

        // MavenProjectStub.setOrganization(Organization) doesn't do anything, so we have to make it work this way
        MavenProject project = new MavenProjectStub()
        {
            @Override
            public Organization getOrganization()
            {
                return organization;
            }
        };
        project.setGroupId( "group" );
        project.setArtifactId( "project" );
        project.setVersion( "1.2.3.4" );

        Properties properties = plugin.getDefaultProperties( project );
        assertEquals( organization.getName(), properties.getProperty( "project.organization.name" ) );
        assertEquals( organization.getName(), properties.getProperty( "pom.organization.name" ) );
        assertEquals( organization.getUrl(), properties.getProperty( "project.organization.url" ) );
        assertEquals( organization.getUrl(), properties.getProperty( "pom.organization.url" ) );
    }
View Full Code Here

Examples of org.apache.maven.project.Organization

     * @param parser
     */
    private Organization parseOrganization(String tagName, XmlPullParser parser, boolean strict, String encoding)
        throws IOException, XmlPullParserException
    {
        Organization organization = new Organization();
        organization.setModelEncoding( encoding );
        java.util.Set parsed = new java.util.HashSet();
        while ( parser.nextTag() == XmlPullParser.START_TAG )
        {
            if ( parser.getName().equals( "name" )  )
            {
                if ( parsed.contains( "name" ) )
                {
                    throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
                }
                parsed.add( "name" );
                organization.setName( getTrimmedValue( parser.nextText()) );
            }
            else if ( parser.getName().equals( "url" )  )
            {
                if ( parsed.contains( "url" ) )
                {
                    throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
                }
                parsed.add( "url" );
                organization.setUrl( getTrimmedValue( parser.nextText()) );
            }
            else if ( parser.getName().equals( "logo" )  )
            {
                if ( parsed.contains( "logo" ) )
                {
                    throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
                }
                parsed.add( "logo" );
                organization.setLogo( getTrimmedValue( parser.nextText()) );
            }
            else
            {
                if ( strict )
                {
View Full Code Here

Examples of org.apache.rave.model.Organization

        assertThat(converter.convert(template), is(sameInstance(template)));
    }

    @Test
    public void nullConversion() {
        Organization template = null;
        assertThat(converter.convert(template), is(nullValue()));
    }
View Full Code Here

Examples of org.apache.rave.model.Organization

    }


    @Test
    public void convertValid() {
        Organization template = new OrganizationImpl();
        template.setAddress(new AddressImpl("123 Sesame Street"));
        template.setDescription("TEST_A");
        template.setEndDate(new Date());
        template.setField("TEST_B");
        template.setName("TEST_C");
        template.setStartDate(new Date());
        template.setSubField("TEST_D");
        template.setTitle("TEST_E");
        template.setWebpage("TEST_F");
        template.setQualifier("TEST_G");
        template.setPrimary(true    );

        JpaOrganization jpaTemplate = converter.convert(template);

        assertThat(jpaTemplate, is(not(sameInstance(template))));
        assertThat(jpaTemplate, is(instanceOf(JpaOrganization.class)));
        assertThat(jpaTemplate.getAddress().getStreetAddress(), is(equalTo(template.getAddress().getStreetAddress())));
        assertThat(jpaTemplate.getDescription(), is(equalTo(template.getDescription())));
        assertThat(jpaTemplate.getEndDate(), is(equalTo(template.getEndDate())));
        assertThat(jpaTemplate.getField(), is(equalTo(template.getField())));
        assertThat(jpaTemplate.getName(), is(equalTo(template.getName())));
        assertThat(jpaTemplate.getStartDate(), is(equalTo(template.getStartDate())));
        assertThat(jpaTemplate.getSubField(), is(equalTo(template.getSubField())));
        assertThat(jpaTemplate.getTitle(), is(equalTo(template.getTitle())));
        assertThat(jpaTemplate.getWebpage(), is(equalTo(template.getWebpage())));
        assertThat(jpaTemplate.getQualifier(), is(equalTo(template.getQualifier())));
        assertThat(jpaTemplate.getPrimary(), is(equalTo(template.getPrimary())));
    }
View Full Code Here

Examples of org.apache.rave.portal.model.Organization

        assertThat(converter.convert(template), is(sameInstance(template)));
    }

    @Test
    public void nullConversion() {
        Organization template = null;
        assertThat(converter.convert(template), is(nullValue()));
    }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.model.Organization

        }
        return converted;
    }

    private Organization convertOrganization(org.apache.rave.model.Organization org) {
        Organization converted = new org.apache.shindig.social.core.model.OrganizationImpl();
        converted.setAddress(convertAddress(org.getAddress()));
        converted.setDescription(org.getDescription());
        converted.setStartDate(org.getStartDate());
        converted.setEndDate(org.getEndDate());
        converted.setField(org.getField());
        converted.setName(org.getName());
        converted.setSubField(org.getSubField());
        converted.setType(org.getQualifier());
        converted.setTitle(org.getTitle());
        converted.setWebpage(org.getWebpage());
        return converted;
    }
View Full Code Here

Examples of org.apache.wicket.security.examples.customactions.entities.Organization

  public MyApplication()
  {
    super();
    // set up the departments, only required because this is an example,
    // normally you would get them from a db or something else.
    Organization organization = new Organization();
    organization.name = "Bee Hive: Honey Production (inc)";
    String[] departments =
      new String[] {"Tracking", "Tracks swarm movements", "false", "H.I.E",
        "Honey Industrial Espionage", "true", "C.B.I.A",
        "Counter Bee Interrogation Agency", "true", "Honey Gathering",
View Full Code Here

Examples of org.as.jtrello.organizations.Organization

  //TODO Check returned object values
 
  @Test
  public void testGet() {
    try {
      Organization organization = OrganizationServiceTest.client.getOrganizations().get(props.getProperty("TRELLO_ORGANIZATION"));
      System.out.println("DEBUG organization=" + organization.toString());
    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }
  }
View Full Code Here

Examples of org.dddlib.organisation.domain.Organization

        this.application = application;
    }

    @Override
    public void createOrganization(OrganizationDto orgToCreate, Long parentOrgId, Date date) {
        Organization organization = new OrganizationAssembler().toEntity(orgToCreate);
        Organization parent = application.getEntity(Organization.class, parentOrgId);
        application.createOrganization(organization, parent, date);
    }
View Full Code Here

Examples of org.hibernate.test.sql.hand.Organization

    s.beginTransaction();

    sfi().getStatistics().clear();

    // create an Organization...
    Organization jboss = new Organization( "JBoss" );
    s.persist( jboss );

    // now query on Employment, this should not cause an auto-flush
    s.createSQLQuery( getEmploymentSQL() ).list();
    assertEquals( 0, sfi().getStatistics().getEntityInsertCount() );
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.