@@ -0,0 +1,1516 @@
+package org.ovirt.engine.core.bll;%0A%0Aimport org.junit.Test;%0Aimport org.ovirt.engine.core.common.action.VdcActionType;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.BitSet;%0Aimport java.util.List;%0Aimport java.util.Set;%0Aimport java.util.TreeSet;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic class VdcActionTypeTest %7B%0A    private static final int bitsetSize = 5000;%0A%0A    @Test%0A    public void testAuditLogTypeValueUniqueness() %7B%0A        BitSet bitset = new BitSet(bitsetSize);%0A        Set%3CInteger%3E nonUniqueValues = new TreeSet%3CInteger%3E();%0A%0A        for (VdcActionType vat : VdcActionType.values()) %7B%0A            if (bitset.get(vat.getValue())) %7B%0A                nonUniqueValues.add(vat.getValue());%0A            %7D%0A            else %7B%0A                bitset.set(vat.getValue());%0A            %7D%0A        %7D%0A        assertTrue(%22VdcActionType contains the following non unique values: %22 + nonUniqueValues, nonUniqueValues.isEmpty());%0A    %7D%0A%0A    @Test%0A    public void testCommandClassExistance() %7B%0A        List%3CVdcActionType%3E missingCommands = new ArrayList%3C%3E();%0A        for (VdcActionType vat : VdcActionType.values()) %7B%0A            if (vat != VdcActionType.Unknown) %7B%0A                if (CommandsFactory.getCommandClass(vat.name()) == null)%7B%0A                    missingCommands.add(vat);%0A                %7D%0A            %7D%0A        %7D%0A        assertTrue(%22VdcActionType contains the following values that does not correspond to an existing command class: %22 + missingCommands,%0A                missingCommands.isEmpty());%0A    %7D%0A%7D%0A

Add VdcActionType tests