@@ -0,0 +1,1143 @@
+package test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport processing.core.PVector;%0A%0Apublic class VetorCompostoTest %7B%0A%0A  PVector local, dir, acel, testVector;%0A  String localLabel, dirLabel, acelLabel;%0A  Map%3CString, PVector%3E vectors;%0A%0A  @Before%0A  public void setUp() throws Exception %7B%0A%0A    vectors = new HashMap%3CString, PVector%3E();%0A%0A    local = PVector.random2D();%0A    dir = PVector.random2D();%0A    acel = PVector.random2D();%0A%0A    localLabel = %22localLabel%22;%0A    dirLabel = %22dirLabel%22;%0A    acelLabel = %22acelLabel%22;%0A%0A    vectors.put(%22localLabel%22, local);%0A    vectors.put(%22dirLabel%22, dir);%0A    vectors.put(%22acelLabel%22, acel);%0A%0A    testVector = vectors.get(localLabel);%0A%0A    vectors.remove(dirLabel);%0A%0A  %7D%0A%0A  @After%0A  public void tearDown() throws Exception %7B%0A    vectors.clear();%0A  %7D%0A%0A  @Test%0A  public void testQuandoForAdicionadoNovoVetor() %7B%0A    assertEquals(testVector, vectors.get(localLabel));%0A  %7D%0A%0A  @Test%0A  public void testQuandoForRemovidoPeloLabel() %7B%0A    assertEquals(vectors.get(dirLabel), null);%0A  %7D%0A%0A%7D%0A

Add test VetorComposto para trabalhar muitos vetores atuando sobre o corpo