Project

General

Profile

« Previous | Next » 

Revision 2100

Added by Matt Jones over 20 years ago

New EventLogTest modifying the log call to exclude revision.

View differences:

test/edu/ucsb/nceas/metacattest/EventLogTest.java
29 29

  
30 30
import edu.ucsb.nceas.metacat.DBConnectionPool;
31 31
import edu.ucsb.nceas.metacat.EventLog;
32
import edu.ucsb.nceas.metacat.EventLogData;
33 32
import edu.ucsb.nceas.metacat.MetaCatUtil;
34 33
import edu.ucsb.nceas.utilities.Options;
35 34

  
......
70 69

  
71 70
    public void testLog()
72 71
    {
73
        
74
        EventLogData event = new EventLogData("192.168.1.103", "public", 
75
                "test.1", 1, "read");
76
        assertTrue(event != null);
77
        EventLog.getInstance().log(event);
72
        EventLog.getInstance().log("192.168.1.103", "public", "test.1", "read");
73
        assertTrue(1 == 1);
78 74
    }
79 75

  
80 76
}

Also available in: Unified diff