I have a java test which is based on guice. I want to pass multiple parameter sets which are supported by JUnitParams. But it looks like I can pass only one @RunWith. So essentially I can add either JUnitParamsRunner or GuiceTestRunner. What is the way out?
JUnitParamsRunner with Guice
204 Views Asked by Oliver Blue At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in UNIT-TESTING
- How to write tests for classes with inheritance
- PHPunit call magic methods
- Convert IEnumerable to IObservable with variable Period
- How to a run specific code before & after each unit test in Python
- Unit testing a class A that derives from an abstract class B
- Is there another way to unit test business logic in mvc
- Some of my tests show prepended with junit.framework
- Selenium Driver Service not found exception
- Can not convert from Class<PowerMockRunner> to Class<? extends Runner>
- AngularJS Unit Testing - multiple mocks and providers
- How to use Sinon.js FakeXMLHttpRequest with superagent?
- Get Mock with AutoMock.Create<>()
- Mock service that takes unitOfWork in constructor
- Cleanest method for creating a pytest test fixture that takes in dynamic text data
- g++ 5.1.0 not building project, clang shows unknown error
Related Questions in JUNIT
- Reopening the application freshly through appium java script for Next Testcase
- Some of my tests show prepended with junit.framework
- Test Selector Plugin Jenkins returns No tests were executed
- Inject EntityManager in SwitchYard Junit implementation
- Java JUnit4: Make simple assertEquals Test pass
- Don't let test stop on failure
- How to test Reply<?> in sitebricks
- Arquillian Embedded Derby database columnDefinition="text"
- How do I write unit test (JUnit) to check Database connection using DAO class?
- Get full path of a package situated in source folder from junit
- How to write a JUnit unit test for database call?
- Unit tests fail to run after upgrade from grails 2.3 to 2.5
- Issues with a UDF
- Unit testing with Liferay 6.2
- What does the "Test Artifact" selector do in Android STudio
Related Questions in GUICE
- Guice + Jersey + Spring data
- Inject a TypeListener
- Specs2/Guice issue in Play 2.4.0 functional tests
- Guice : Inject an ArrayList of Strings
- Jersey 2 with Guice 4 on Glassfish 4.1
- Jersey resource that matches any path
- Guice Injection into Google Cloud Endpoints Transformer
- constructor cannot distinguish between multiple occurrences of the same primitive type
- Using non-static injected services in JUnit Parameterized Tests
- Modern Akka DI with Guice
- Jersey & Guice: How to appoint base path to each ServletModule?
- Constructor parameter injection using guice
- Inject values of a Map with Guice
- What Guice MethodInterceptor should return
- Guice inject context instance that is created upon each request
Related Questions in JUNITPARAMS
- Is it possible to find current JUnitParams parameters from a custom rule?
- JUnitParams passing non-primitive objects to test method
- Junit parameterized tests using file input
- Junit: @Parameters method is ran before any other test
- JUnitParams for each method of class
- 'No tests found with testrunner JUnit4' when using JUnitParams
- JUnitParams with Mockito
- junitparameter exception object of class
- JUnitParams not working with String array
- Parametrized android tests with different sets of data
- How to apply two @RunWith in spring boot starter test
- Usage of @TestCaseName with @FileParameters in JUnitParams
- JunitParams and PowerMockRunner null pointer exception
- How to identify different test cases when parameterizing
- TypeNotPresentException with JUnitParamsRunner
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
No, you cannot have multiple runners for one test class - this is a limitation of JUnit 4. You can however have a runner and multiple
Rules. There is no officialRulefor Guice, but you can find a few third-party solutions (eg. here or here) or write your own. That way you can have a test class that is annotated with@RunWith(JUnitParamsRunner.class)and has a@Rulefield that sets up Guice.