Examples of reset()


Examples of org.gitective.core.filter.tree.CommitTreeFilter.reset()

        return super.reset();
      }
    };
    assertFalse(reset.get());
    CommitTreeFilter filter = new CommitTreeFilter(treeFilter);
    filter.reset();
    assertTrue(reset.get());
  }

  /**
   * Test resetting commit filter resets tree filter
View Full Code Here

Examples of org.gitective.core.filter.tree.ExtensionOccurrenceFilter.reset()

        assertFalse(occurrence.toString().equals(previous.toString()));
      previous = occurrence;
      count++;
    }
    assertEquals(2, count);
    filter.reset();
    assertTrue(filter.getOccurrences().isEmpty());
  }

  /**
   * Test {@link ExtensionOccurrenceFilter#clone()}
View Full Code Here

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

    add("a/b.txt", "content");
    TypeCountFilter filter = TypeCountFilter.tree();
    new CommitFinder(testRepo).setFilter(new CommitTreeFilter(filter))
        .find();
    assertEquals(1, filter.getCount());
    filter.reset();
    assertEquals(0, filter.getCount());
  }

  /**
   * Clone filter
View Full Code Here

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

    CommitHistogramFilter filter = new AuthorHistogramFilter();
    CommitHistogram histogram = filter.getHistogram();
    assertNotNull(histogram);
    new CommitFinder(testRepo).setFilter(filter).find();
    assertSame(histogram, filter.getHistogram());
    filter.reset();
    assertNotNull(filter.getHistogram());
    assertSame(histogram, filter.getHistogram());
  }

  /**
 
View Full Code Here

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

    CommitHistogramFilter filter = new AuthorHistogramFilter();
    CommitHistogram histogram = filter.getHistogram();
    assertNotNull(histogram);
    new CommitFinder(testRepo).setFilter(filter).find();
    assertSame(histogram, filter.getHistogram());
    filter.reset();
    assertNotNull(filter.getHistogram());
    assertSame(histogram, filter.getHistogram());
  }

  /**
 
View Full Code Here

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

    FileHistogramFilter filter = new FileHistogramFilter();
    FileHistogram histogram = filter.getHistogram();
    assertNotNull(histogram);
    new CommitFinder(testRepo).setFilter(filter).find();
    assertSame(histogram, filter.getHistogram());
    filter.reset();
    assertNotNull(filter.getHistogram());
    assertNotSame(histogram, filter.getHistogram());
  }

  /**
 
View Full Code Here

Examples of org.glassfish.grizzly.memory.ByteBufferArray.reset()

                try {
                    sslEngineResult = sslEngine.unwrap(inputByteBuffer,
                            outputArray, 0, bba.size());
                } finally {
                    bba.restore();
                    bba.reset();
                }
            }
        } catch (SSLException e) {
            return new SslResult(output, e);
        }
View Full Code Here

Examples of org.grails.buffer.StreamByteBuffer.reset()

        StreamByteBuffer byteBuffer = new StreamByteBuffer(1024, StreamByteBuffer.ReadMode.RETAIN_AFTER_READING);
        PrintWriter pw=new PrintWriter(new OutputStreamWriter(byteBuffer.getOutputStream(),"UTF-8"));
        pw.print(TEST_STRING);
        pw.close();
        assertEquals(TEST_STRING, byteBuffer.readAsString("UTF-8"));
        byteBuffer.reset();
        // call a second time to test if the RETAIN_AFTER_READING mode works as expected
        assertEquals(TEST_STRING, byteBuffer.readAsString("UTF-8"));
    }

    public void testToInputStream() throws IOException {
View Full Code Here

Examples of org.gudy.azureus2.core3.util.SHA1.reset()

       
        byte[] sun = sha1Sun.digest();
        sha1Sun.reset();
       
        byte[] gudy = sha1Gudy.digest();
        sha1Gudy.reset();
       
        if ( Arrays.equals( sun, gudy ) ) {
          System.out.println("  SHA1-Gudy: OK");
        }
        else {
View Full Code Here

Examples of org.gwtlib.client.table.ui.PagingTable.reset()

        table.clear();
      }     
    }));
    hpanel.add(new Button("Reset", new ClickHandler() {
      public void onClick(ClickEvent event) {
        table.reset();
      }     
    }));
    hpanel.add(new Button("Simulate Failure", new ClickHandler() {
      public void onClick(ClickEvent event) {
        table.onFailure(null);
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.