MintimeonlineFilter extends Filter { public void process(ScoreChart scorechart, User user, InetAddress peer, char direction, InodeHandleInterface dir, RemoteSlave sourceSlave) throws NoAvailableSlaveException { process(scorechart, user, peer, direction, dir, System.currentTimeMillis()); } MintimeonlineFilter(int i, Properties p); void process(ScoreChart scorechart, User user, InetAddress peer,
                        char direction, InodeHandleInterface dir, RemoteSlave sourceSlave);  }
@Test public void testSimple() throws NoAvailableSlaveException { Properties p = new Properties(); p.put("1.multiplier", "1"); p.put("1.mintime", "2m"); long time = System.currentTimeMillis(); RemoteSlave[] rslaves = {new RS("slave1", time)}; ScoreChart sc = new ScoreChart(Arrays.asList(rslaves)); MintimeonlineFilter f = new MintimeonlineFilter(1, p); f.process(sc, null, null, Transfer.TRANSFER_UNKNOWN, null, time); assertEquals(-Time.parseTime("1m"), sc.getBestSlaveScore().getScore()); }