* Tests for {@link ArtifactSet}.
*/
public class ArtifactSetTest extends TestCase {
public void testScriptOrder() {
StandardScriptReference fooScript = new StandardScriptReference("foo", 0);
StandardScriptReference barScript = new StandardScriptReference("bar", 1);
assertTrue(fooScript.compareTo(barScript) < 0);
assertTrue(barScript.compareTo(fooScript) > 0);
assertTrue(fooScript.compareTo(fooScript) == 0);
assertTrue(barScript.compareTo(barScript) == 0);
{
ArtifactSet set = new ArtifactSet();
// Add in order.
set.add(fooScript);