RepoServiceFunctionalTest.java revision cf3ded7a02a85e9a249254ba37c8bc82d31b831a
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright © 2011 ForgeRock AS. All rights reserved.
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
public class RepoServiceFunctionalTest {
public void activateService() {
// TODO: Run in embedded felix?
repo = new OrientDBRepoService();
}
public void createAndRead() throws ObjectSetException {
entry("present", true));
.hasSize(2);
.hasSize(2)
.hasSize(2)
}
public void dupplicateCreate() throws ObjectSetException {
assertTrue(false, "Create with duplicate IDs must fail.");
}
public void updateCurrentObject() throws ObjectSetException {
.hasSize(2);
.hasSize(1)
.hasSize(2)
}
public void updateChangedObject() throws ObjectSetException {
// check it fails to update an object that has changed since retrieval
// In between reading an updating, have another update change the state
// Updating with an outdated revision must fail
assertTrue(false, "Update of old revision must fail, but did not.");
}
public void deleteCurrentObject() throws ObjectSetException {
boolean deleteDetected = false;
try {
} catch (NotFoundException ex) {
deleteDetected = true;
}
}
public void deleteMissingObject() throws ObjectSetException {
assertTrue(false, "Delete of unknown ID must fail, but did not.");
}
public void deleteChangedObject() throws ObjectSetException {
// check it rejects deleting changed object
assertTrue(false, "Delete of changed object must fail, but did not.");
}
public void deactivateService() {
}
}
}