Project

General

Profile

« Previous | Next » 

Revision 5376

Added by berkley almost 14 years ago

moved authentication checking out of ResourceHandler and into CrudService

View differences:

CrudServiceTest.java
128 128
        }
129 129
        catch(Exception e)
130 130
        {
131
            //System.out.println("Exception in testCreateAndGet (this *should* happen): " + e.getMessage());
132 131
        }
132
        
133
        try
134
        {
135
            CrudService cs = CrudService.getInstance();
136
            AuthToken token = new AuthToken("somefakesessionid");
137
            //create a doc
138
            Identifier id = createDoc(token, getTestDoc());
139
            fail("exception should have been thrown.");
140
        }
141
        catch(Exception e)
142
        {
143
        }
133 144
	}
134 145
	
135 146
	/**

Also available in: Unified diff