Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import static org.junit.Assert.assertEquals;
- import org.junit.Before;
- import org.junit.Rule;
- import org.junit.Test;
- import org.junit.rules.ExpectedException;
- public class TestJunitRevPolishCalc {
- String str;
- String split_array[];
- @Before
- public void setUp() {
- String str = "34+";
- split_array = new String[10];
- }
- @Test
- public void TesttArray() {
- int first;
- split_array = str.split("");
- first = Integer.parseInt(split_array[0]);
- assertEquals(first, 3, 0f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement