Examples of clone()


Examples of org.gitective.core.filter.tree.TypeCountFilter.clone()

   * @throws Exception
   */
  @Test
  public void cloneFilter() throws Exception {
    TypeCountFilter filter = TypeCountFilter.tree();
    TreeFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof TypeCountFilter);
    assertEquals(filter.getType(), ((TypeCountFilter) clone).getType());
  }
View Full Code Here

Examples of org.gitective.core.stat.AuthorHistogramFilter.clone()

   * @throws Exception
   */
  @Test
  public void authorCloneFilter() throws Exception {
    CommitHistogramFilter filter = new AuthorHistogramFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof AuthorHistogramFilter);
    AuthorHistogramFilter clonedFilter = (AuthorHistogramFilter) clone;
    assertNotNull(clonedFilter.getHistogram());
View Full Code Here

Examples of org.gitective.core.stat.CommitHistogramFilter.clone()

   * @throws Exception
   */
  @Test
  public void authorCloneFilter() throws Exception {
    CommitHistogramFilter filter = new AuthorHistogramFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof AuthorHistogramFilter);
    AuthorHistogramFilter clonedFilter = (AuthorHistogramFilter) clone;
    assertNotNull(clonedFilter.getHistogram());
View Full Code Here

Examples of org.gitective.core.stat.CommitterHistogramFilter.clone()

   * @throws Exception
   */
  @Test
  public void committerCloneFilter() throws Exception {
    CommitHistogramFilter filter = new CommitterHistogramFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof CommitterHistogramFilter);
    CommitterHistogramFilter clonedFilter = (CommitterHistogramFilter) clone;
    assertNotNull(clonedFilter.getHistogram());
View Full Code Here

Examples of org.gitective.core.stat.FileHistogramFilter.clone()

   * @throws Exception
   */
  @Test
  public void fileCloneFilter() throws Exception {
    FileHistogramFilter filter = new FileHistogramFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof FileHistogramFilter);
    FileHistogramFilter clonedFilter = (FileHistogramFilter) clone;
    assertNotNull(clonedFilter.getHistogram());
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation.clone()

        if (security) {
            currentSecurityContext = securityContext.getCurrentSecurityContext();
        }
        ComponentInvocation currentInvocation = invocationManager.getCurrentInvocation();
        if (currentInvocation != null) {
            savedInvocation = currentInvocation.clone();
            savedInvocation.instance = currentInvocation.instance;
            savedInvocation.setResourceTableKey(null);
            if (!naming) {
                savedInvocation.setJNDIEnvironment(null);
            }
View Full Code Here

Examples of org.glassfish.hk2.external.org.objectweb.asm.tree.AbstractInsnNode.clone()

                // Insert this new instantiation into the queue to be emitted
                // later.
                worklist.add(newinst);
            } else {
                newInstructions.add(insn.clone(instant));
            }
        }

        // Emit try/catch blocks that are relevant to this method.
        for (Iterator<TryCatchBlockNode> it = tryCatchBlocks.iterator(); it
View Full Code Here

Examples of org.grouplens.lenskit.collections.LongKeyDomain.clone()

    }
   
    @Test
    public void testConstructors() {
        LongKeyDomain keys = LongKeyDomain.create(1, 2);
        MutableTypedSideChannel<String> channel = new MutableTypedSideChannel<String>(keys.clone());
        assertTrue(channel.isEmpty());
       
        channel = new MutableTypedSideChannel<String>(keys.clone(), new String[]{a,b});
        assertFalse(channel.isEmpty());
        assertEquals(a, channel.get(1));
View Full Code Here

Examples of org.hibernate.mapping.Column.clone()

      idTable.setSchema( schema );
    }
    Iterator itr = entityMapping.getTable().getPrimaryKey().getColumnIterator();
    while( itr.hasNext() ) {
      Column column = (Column) itr.next();
      idTable.addColumn( column.clone()  );
    }
    Column sessionIdColumn = new Column( "hib_sess_id" );
    sessionIdColumn.setSqlType( "CHAR(36)" );
    sessionIdColumn.setComment( "Used to hold the Hibernate Session identifier" );
    idTable.addColumn( sessionIdColumn );
View Full Code Here

Examples of org.huihoo.workflow.store.spi.SpiUserDatabase.clone()

    SpiUserDatabase gudb = DatabaseRegistry.getUserDatabase(DatabaseRegistry.WILLOW_DRIVER_CLASS);
    if (gudb != null)
    {
      try
      {
        userDatabase = (SpiUserDatabase) gudb.clone();
       
        SchemaContext schemaContext = new SchemaContext(WorkflowProperties.getSchemaContextFile());
        userDatabase.setSchemaContext(schemaContext);
       
        Store tmpStore=(this.store==null?WorkflowProperties.getUserStore():this.store);
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.