List of usage examples for org.eclipse.jgit.lfs.lib LongObjectId fromString
public static LongObjectId fromString(String str)
From source file:com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizerTest.java
License:Apache License
@Test public void testVerifyAgainstDifferentObjectId() throws Exception { AuthInfo info = auth.generateAuthInfo("o", zeroId(), Instant.now(), 1L); assertThat(auth.verifyAuthInfo(info.authToken(), "o", LongObjectId .fromString("123456789012345678901234567890" + "123456789012345678901234567890" + "1234"))) .isFalse();//from ww w . j av a 2s. c o m }