i wan to run one test test with various parameters. in java this is possible via junit4 and the code is as follows
package com.android.test; import static org.junit.Assert.assertEquals; import java.util.Arrays; import java.util.Collection; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @RunWith(Parameterized.class) public class ParameterizedTestExample { private int number; private int number2; private int result; private functioncall coun;
Now my question is: can we run the same tags for android, where we are dealing with the context.
when i try to run the code using android junit. this gives me a NoClassDefinationFound error.
source share