Project

General

Profile

« Previous | Next » 

Revision 7686

Added by Jing Tao over 11 years ago

Removed the commented out text cases and add a test for archvied document.

View differences:

test/edu/ucsb/nceas/metacat/dataone/SolrQueryAccessFilterTest.java
68 68
    public static Test suite() {
69 69
      
70 70
      TestSuite suite = new TestSuite();
71
      //suite.addTest(new SolrQueryAccessFilterTest("testPublicReadable"));
72
      //suite.addTest(new SolrQueryAccessFilterTest("testOnlyUserReadable"));
73
      //suite.addTest(new SolrQueryAccessFilterTest("testGroupReadable"));
74
      //suite.addTest(new SolrQueryAccessFilterTest("testOnlyRightHolderReadable"));
71
      suite.addTest(new SolrQueryAccessFilterTest("testPublicReadable"));
72
      suite.addTest(new SolrQueryAccessFilterTest("testOnlyUserReadable"));
73
      suite.addTest(new SolrQueryAccessFilterTest("testGroupReadable"));
74
      suite.addTest(new SolrQueryAccessFilterTest("testOnlyRightHolderReadable"));
75 75
      suite.addTest(new SolrQueryAccessFilterTest("testDistrustCertificate"));
76 76
      
77 77
      return suite;
......
120 120
        String resultId2 = query(querySession2, id);
121 121
        assertTrue("In the testPublicReadable method, the query result should have the id "+id.getValue()+ " rather than "+resultId2, resultId2.equals(id.getValue()));
122 122
        archive(session, id);
123
        String resultId3 = query(querySession2, id);
124
        assertTrue("In the testPublicReadable method, the query result should be null since the document was archived. ", resultId3 == null);
123 125
    }
124 126
    
125 127
    

Also available in: Unified diff