Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. import static org.junit.Assert.assertEquals;
  2. import org.junit.Before;
  3. import org.junit.Rule;
  4. import org.junit.Test;
  5. import org.junit.rules.ExpectedException;
  6.  
  7. public class TestJunitRevPolishCalc {
  8.   String str;
  9.   String split_array[];
  10.  
  11.   @Before
  12.   public void setUp() {
  13.     String str = "34+";
  14.     split_array = new String[10];
  15.   }
  16.  
  17.   @Test
  18.  
  19.   public void TesttArray() {
  20.     int first;
  21.     split_array = str.split("");
  22.     first = Integer.parseInt(split_array[0]);
  23.     assertEquals(first, 3, 0f);
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement