Skip to content

Commit 49f5c9c

Browse files
committed
Updated test and added wrapper method for analyzeFile()
1 parent 0849bd2 commit 49f5c9c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/com/netflix/imflibrary/app/IMPAnalyzer.java

+3
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ private static List<OutputProfileList> analyzeOutputProfileLists(Path rootPath,
373373

374374

375375

376+
public static List<ErrorLogger.ErrorObject> analyzeFile(Path input) throws IOException {
377+
return analyzeFile(input, null);
378+
}
376379

377380

378381
public static List<ErrorLogger.ErrorObject> analyzeFile(Path input, String namespace) throws IOException {

src/test/java/com/netflix/imflibrary/app/IMPAnalyzerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void IMPAnalyzerAnalyzeUnknownFileError() throws IOException
214214
@Test
215215
public void IMPAnalyzerAnalyzeTrackFileNullTerminatedStrings() throws IOException
216216
{
217-
File inputFile = TestHelper.findResourceByPath("IMFTrackFiles/AUDIO.null_terminated_strings.mxf");
217+
Path inputFile = TestHelper.findResourceByPath("IMFTrackFiles/AUDIO.null_terminated_strings.mxf");
218218
List<ErrorLogger.ErrorObject> errorList = analyzeFile(inputFile);
219219
Assert.assertEquals(errorList.size(), 0);
220220

0 commit comments

Comments
 (0)