/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.apache.usergrid.chop.webapp.coordinator.rest;


import java.io.File;
import java.io.IOException;
import java.util.Date;
import java.util.List;

import org.safehaus.jettyjam.utils.TestMode;

import org.apache.usergrid.chop.api.Commit;
import org.apache.usergrid.chop.api.Module;
import org.apache.usergrid.chop.stack.CoordinatedStack;
import org.apache.usergrid.chop.stack.Stack;
import org.apache.usergrid.chop.stack.User;
import org.apache.usergrid.chop.webapp.coordinator.CoordinatorUtils;
import org.apache.usergrid.chop.webapp.coordinator.StackCoordinator;
import org.apache.usergrid.chop.webapp.dao.CommitDao;
import org.apache.usergrid.chop.webapp.dao.ModuleDao;
import org.apache.usergrid.chop.webapp.dao.UserDao;
import org.apache.usergrid.chop.webapp.dao.model.BasicCommit;
import org.apache.usergrid.chop.webapp.dao.model.BasicModule;


/**
 * A base class for all signal resources.
 */
public abstract class TestableResource {
    public static final String TEST_PARAM = TestMode.TEST_MODE_PROPERTY;

    public final static String SUCCESSFUL_TEST_MESSAGE = "Test parameters are OK";

    private final String endpoint;


    protected TestableResource(String endpoint) {
        this.endpoint = endpoint;
    }


    public String getTestMessage() {
        return endpoint + " resource called in test mode.";
    }


    public boolean inTestMode(String testMode) {
        return testMode != null &&
                (testMode.equals(TestMode.INTEG.toString()) || testMode.equals(TestMode.UNIT.toString()));
    }
}

@@ -871,795 +871,43 @@
 ort 
-java.io.File;%0Aimport java.io.IOException;%0Aimport java.util.Date;%0Aimport java.util.List;%0A%0Aimport org.safehaus.jettyjam.utils.TestMode;%0A%0Aimport org.apache.usergrid.chop.api.Commit;%0Aimport org.apache.usergrid.chop.api.Module;%0Aimport org.apache.usergrid.chop.stack.CoordinatedStack;%0Aimport org.apache.usergrid.chop.stack.Stack;%0Aimport org.apache.usergrid.chop.stack.User;%0Aimport org.apache.usergrid.chop.webapp.coordinator.CoordinatorUtils;%0Aimport org.apache.usergrid.chop.webapp.coordinator.StackCoordinator;%0Aimport org.apache.usergrid.chop.webapp.dao.CommitDao;%0Aimport org.apache.usergrid.chop.webapp.dao.ModuleDao;%0Aimport org.apache.usergrid.chop.webapp.dao.UserDao;%0Aimport org.apache.usergrid.chop.webapp.dao.model.BasicCommit;%0Aimport org.apache.usergrid.chop.webapp.dao.model.BasicModul
+org.safehaus.jettyjam.utils.TestMod
 e;%0A%0A

Remove unnecessary imports