Hi,
Previously I though there might be an issue due to date equality comparison methodology (using equals method).
Here, I am using strings to compare for equality, but still have tests failures.
Any hints?
Thanks
package com.codegym.task.task39.task3913;
import java.io.IOException;
import java.nio.file.Paths;
import java.text.ParseException;
public class Solution {
public static void main(String[] args) throws IOException, ParseException {
LogParser logParser = new LogParser(Paths.get(System.getProperty("user.dir") + "/4.JavaCollections/src/com/codegym/task/task39/task3913/logs/example.log"));
System.out.println(logParser.getNumberOfUniqueIPs(null, LogParser.cmpfmt.parse("30.08.2012 16:08:40")));
System.out.println(logParser.getIPsForStatus(Status.FAILED,null, null));
System.out.println(logParser.getIPsForUser("Pete Tyson",null, null));
logParser.print();
}
}