Examples of MergeTask


Examples of kalashnikov.dmitry.lab3.MergeTask

public class MergeTaskTest {
    @Test
    public void testNormalMerge() throws Exception {
        int[] first = new int[]{1, 5, 20, 40};
        int[] second = new int[]{0, 9, 20};
        MergeTask mt = new MergeTask(first, second);
        Assert.assertArrayEquals(new int[]{0, 1, 5, 9, 20, 20, 40}, mt.call());
    }
View Full Code Here

Examples of kalashnikov.dmitry.lab3.MergeTask

    }

    @Test(expected = NullPointerException.class)
    public void testMergeWithNull() {
        int[] second = new int[]{0, 9, 20};
        MergeTask mt = new MergeTask(null, second);
    }
View Full Code Here

Examples of kalashnikov.dmitry.lab3.MergeTask

    @Test
    public void testMergeWithEmpty() throws Exception {
        int[] first = new int[]{};
        int[] second = new int[]{0, 9, 20};
        MergeTask mt = new MergeTask(first, second);
        Assert.assertArrayEquals(new int[]{0, 9, 20}, mt.call());
        mt = new MergeTask(second, first);
        Assert.assertArrayEquals(new int[]{0, 9, 20}, mt.call());
    }
View Full Code Here

Examples of mapwriter.tasks.MergeTask

      }
    }
   
    public void mergeMapViewToImage() {
      this.mw.chunkManager.saveChunks();
      this.mw.executor.addTask(new MergeTask(this.mw.regionManager,
          (int) this.mapView.getX(),
          (int) this.mapView.getZ(),
          (int) this.mapView.getWidth(),
          (int) this.mapView.getHeight(),
          this.mapView.getDimension(),
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.