Package org.eclipse.jgit.lfs.test
Class LongObjectIdTestUtils
java.lang.Object
org.eclipse.jgit.lfs.test.LongObjectIdTestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LongObjectId
Create id as hash of the given string.static LongObjectId
Create id as hash of a file content
-
Constructor Details
-
LongObjectIdTestUtils
public LongObjectIdTestUtils()
-
-
Method Details
-
hash
Create id as hash of the given string.- Parameters:
s
- the string to hash- Returns:
- id calculated by hashing string
-
hash
Create id as hash of a file content- Parameters:
file
- the file to hash- Returns:
- id calculated by hashing file content
- Throws:
FileNotFoundException
- if file doesn't existIOException
-