@Test public void testBasics() throws Exception { Syntex1 s = new Syntex1(); s.update("Hello world"); byte[] d1 = s.digest(); assertEquals(36, s.getLength()); byte[] d2 = new Syntex1().digest("Fello world"); assertEquals(36, d2.length); byte[] d3 = new Syntex1().digest("Hello world"); assertArrayEquals(d1, d3); assertThat( d3, equalTo(d1)); assertThat( d2, not(equalTo(d1))); InputStream in = new ByteArrayInputStream("Hello world".getBytes()); assertThat(d1, equalTo( new Syntex1().digest(in))); }
@Override public int getLength() { return 36; }
Syntex1 extends Digest { @Override public int getLength() { return 36; } }
Syntex1 extends Digest { @Override public int getLength() { return 36; }  }
Syntex1 extends Digest { @Override public int getLength() { return 36; }  @Override int getLength(); }
Syntex1 extends Digest { @Override public int getLength() { return 36; }  @Override int getLength();  }