Example usage for org.eclipse.jgit.lfs.lib LongObjectId fromString

List of usage examples for org.eclipse.jgit.lfs.lib LongObjectId fromString

Introduction

In this page you can find the example usage for org.eclipse.jgit.lfs.lib LongObjectId fromString.

Prototype

public static LongObjectId fromString(String str) 

Source Link

Document

Convert a LongObjectId from hex characters.

Usage

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
}