import org.splat.dal.bo.som.Publication;
import org.splat.dal.bo.som.SimulationContext;
import org.splat.dal.bo.som.Study;
+import org.splat.dal.bo.som.Study.Properties;
import org.splat.dal.bo.som.ValidationCycle;
+import org.splat.dal.bo.som.ValidationCycle.Actor;
import org.splat.dal.bo.som.ValidationCycleRelation;
import org.splat.dal.bo.som.ValidationStep;
import org.splat.dal.bo.som.Visibility;
-import org.splat.dal.bo.som.Study.Properties;
-import org.splat.dal.bo.som.ValidationCycle.Actor;
import org.splat.dal.dao.som.DescriptionAttributeDAO;
import org.splat.dal.dao.som.DocumentDAO;
import org.splat.dal.dao.som.IDBuilderDAO;
* @see org.splat.service.StudyService#compare(java.util.List)
*/
@Override
- public String compare (final List<DocToCompareDTO> docsList, final String userName) throws IncompatibleDataException{
+ public String compare (final List<DocToCompareDTO> docsList, final String userName) throws IncompatibleDataException {
String axis1Name = "";
String axis2Name = "";
//get the name of the axis.
if (input.hasNext()) {
String[] tokens = input.nextLine().split(",");
+
+ if (tokens.length < 2)
+ throw new IncompatibleDataException(MessageKeyEnum.IDT_000001.toString());
+
if ("".equals(axis1Name)) {
axis1Name = tokens[0];
} else if (!axis1Name.equals(tokens[0])) {