Examples of findByName()


Examples of org.apache.poi.hslf.model.textproperties.TextPropCollection.findByName()

        atom.setParentTextSize(data_d_text_len);

        TextPropCollection prprops = (TextPropCollection)atom.getParagraphStyles().getFirst();
        assertEquals(data_d_text_len+1, prprops.getCharactersCovered());
        assertEquals(1, prprops.getTextPropList().size()); //1 property found
        assertEquals(1, prprops.findByName("alignment").getValue());

        TextPropCollection chprops = (TextPropCollection)atom.getCharacterStyles().getFirst();
        assertEquals(data_d_text_len+1, chprops.getCharactersCovered());
        assertEquals(5, chprops.getTextPropList().size()); //5 properties found
        assertEquals(1, chprops.findByName("char_flags").getValue());
View Full Code Here

Examples of org.apache.poi.hslf.model.textproperties.TextPropCollection.findByName()

        assertEquals(1, prprops.findByName("alignment").getValue());

        TextPropCollection chprops = (TextPropCollection)atom.getCharacterStyles().getFirst();
        assertEquals(data_d_text_len+1, chprops.getCharactersCovered());
        assertEquals(5, chprops.getTextPropList().size()); //5 properties found
        assertEquals(1, chprops.findByName("char_flags").getValue());
        assertEquals(1, chprops.findByName("font.index").getValue());
        assertEquals(20, chprops.findByName("font.size").getValue());
        assertEquals(0, chprops.findByName("asian.font.index").getValue());
        assertEquals(1, chprops.findByName("ansi.font.index").getValue());
    }
View Full Code Here

Examples of org.apache.poi.hslf.model.textproperties.TextPropCollection.findByName()

        TextPropCollection chprops = (TextPropCollection)atom.getCharacterStyles().getFirst();
        assertEquals(data_d_text_len+1, chprops.getCharactersCovered());
        assertEquals(5, chprops.getTextPropList().size()); //5 properties found
        assertEquals(1, chprops.findByName("char_flags").getValue());
        assertEquals(1, chprops.findByName("font.index").getValue());
        assertEquals(20, chprops.findByName("font.size").getValue());
        assertEquals(0, chprops.findByName("asian.font.index").getValue());
        assertEquals(1, chprops.findByName("ansi.font.index").getValue());
    }
View Full Code Here

Examples of org.apache.poi.hslf.model.textproperties.TextPropCollection.findByName()

        TextPropCollection chprops = (TextPropCollection)atom.getCharacterStyles().getFirst();
        assertEquals(data_d_text_len+1, chprops.getCharactersCovered());
        assertEquals(5, chprops.getTextPropList().size()); //5 properties found
        assertEquals(1, chprops.findByName("char_flags").getValue());
        assertEquals(1, chprops.findByName("font.index").getValue());
        assertEquals(20, chprops.findByName("font.size").getValue());
        assertEquals(0, chprops.findByName("asian.font.index").getValue());
        assertEquals(1, chprops.findByName("ansi.font.index").getValue());
    }

    /**
 
View Full Code Here

Examples of org.apache.poi.hslf.model.textproperties.TextPropCollection.findByName()

        assertEquals(data_d_text_len+1, chprops.getCharactersCovered());
        assertEquals(5, chprops.getTextPropList().size()); //5 properties found
        assertEquals(1, chprops.findByName("char_flags").getValue());
        assertEquals(1, chprops.findByName("font.index").getValue());
        assertEquals(20, chprops.findByName("font.size").getValue());
        assertEquals(0, chprops.findByName("asian.font.index").getValue());
        assertEquals(1, chprops.findByName("ansi.font.index").getValue());
    }

    /**
     * Check the test data for Bug 42677.
View Full Code Here

Examples of org.apache.tapestry.vlib.ejb.IPublisherHome.findByName()

        // Find or create the publisher.

        try
        {
            publisher = publisherHome.findByName(publisherName);
        }
        catch (FinderException e)
        {
            // Ignore, means that no publisher with the given name already exists.
        }
View Full Code Here

Examples of org.candlepin.model.DistributorVersionCurator.findByName()

    @Test
    public void importDistributorVersionUpdate() throws Exception {
        DistributorVersionCurator dvc = mock(DistributorVersionCurator.class);
        Importer i = new Importer(null, null, null, null, null, null, null,
            null, null, null, null, null, null, i18n, dvc, null);
        when(dvc.findByName("test-dist-ver")).thenReturn(
            new DistributorVersion("test-dist-ver"));
        File[] distVer = new File[1];
        distVer[0] = new File("target/test/resources/upstream/dist-ver.json");

        i.importDistributorVersions(distVer);
View Full Code Here

Examples of org.cipres.treebase.domain.study.StudyHome.findByName()

 
  public static Submission getPseudoSubmission(String name) {
    if (pseudoSubmission == null) {
      StudyHome sh = ContextManager.getStudyHome();
      SubmissionService ss = ContextManager.getSubmissionService();
      Collection<Study> pseudoStudies = sh.findByName(name, true);
      if (pseudoStudies.size() == 0) {
        pseudoSubmission = ss.createSubmission(null, null);
        pseudoSubmission.getStudy().setName(name);
        ss.save(pseudoSubmission.getStudy());
        sh.flush();
View Full Code Here

Examples of org.fao.geonet.repository.GroupRepository.findByName()

                    groupName = m.group(1);
                }
            }
           
            GroupRepository groupRepo = this.applicationContext.getBean(GroupRepository.class);
            Group group = groupRepo.findByName(groupName);
           
            if (group == null) {
                group = groupRepo.save(new Group().setName(groupName));
            } else {
                // Update something ?
View Full Code Here

Examples of org.fest.swing.core.ComponentFinder.findByName()

    Settings settings = mock(Settings.class);
    when(robot.settings()).thenReturn(settings);
    when(settings.componentLookupScope()).thenReturn(SHOWING_ONLY);
    ComponentFinder finder = mock(ComponentFinder.class);
    when(robot.finder()).thenReturn(finder);
    when(finder.findByName(name, type, true)).thenReturn(frame);
    ComponentFixture fixture = new ComponentFixture(ComponentFixture.class, robot, name, type);
    assertThat(fixture.robot()).isSameAs(robot);
    assertThat(fixture.target()).isSameAs(frame);
  }
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.