Package com.google.gwt.core.ext.linker.impl

Examples of com.google.gwt.core.ext.linker.impl.StandardScriptReference.compareTo()


  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();
View Full Code Here


    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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.