aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Partially revert "Patch to make it compile against JUnit 4.10 and run on ↵android-o-preview-1o-previewPaul Duffin2016-12-164-20/+6
| | | | | | | | | | Android" This partially reverts commit 6774bdc0447b72a618eab51772685010afd5647a. Bug: 33613916 Test: make checkbuild Change-Id: Iac008952ff1a0e6f89d8862e817a8b2480dcbb28
* Replace junit-targetdex with junitPaul Duffin2016-12-071-2/+2
| | | | | | Bug: 30188076 Test: make checkbuild Change-Id: Iaafeb7aab6d28b4ce2e93a35ea412f234fa21834
* Use junit-host instead of junitPaul Duffin2016-11-291-1/+1
|\ | | | | | | | | | | am: 92b5e663ad Change-Id: I9e428e1df9c66a40b6d4f141ee407cbc867528b1
| * Use junit-host instead of junitPaul Duffin2016-11-291-1/+1
| | | | | | | | | | | | Bug: 30188076 Test: make checkbuild Change-Id: I7cb06fd4ebe00601d176fee3b1080c8a46930bbb
* | Use junit-hostdex instead of core-junit-hostdex/junit4-target-hostdexPaul Duffin2016-11-281-1/+1
|\| | | | | | | | | | | am: fe726a1ab7 Change-Id: I58535bb28bcc4ef763e48c81db02705a7bb657fd
| * Use junit-hostdex instead of core-junit-hostdex/junit4-target-hostdexPaul Duffin2016-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | A recent change in external/junit changes junit-hostdex so it includes all JUnit classes not just the ones not in core-junit-hostdex and not in junit4-target-hostdex. This change updates this project to use junit-hostdex instead of either of or even both of the other two. Bug: 30188076 Test: make checkbuild and art/tools/run-libcore-tests.sh '--mode=host' '--variant=X32' Change-Id: I046c394b2174567dd933105497d784ca3477ef0f
* | Correct dependencies for junit-paramShubham Ajmera2016-11-041-0/+7
|\| | | | | | | | | | | am: 630c32b92b Change-Id: I9fa60a2f1d9c4f90ae4fc232db4b84c5d7bc8103
| * Correct dependencies for junit-paramShubham Ajmera2016-11-041-0/+7
|/ | | | | | | | | | | | | Set LOCAL_NO_STANDARD_LIBRARIES to true and explicitly listed the dependencies. As LOCAL_NO_STANDARD_LIBRARIES flag was not set to true, some of the modules in frameworks(ext) were added as dependencies. ART bot doesn't support frameworks modules and therefore, it was breaking their build. Test: make junit-params-host junit-params-hostdex junit-params \ junit-params-test Change-Id: I24068aec64cd301ef542ee9dbb9db505eff8b857
* Patch to make it compile against JUnit 4.10 and run on AndroidPaul Duffin2016-07-2112-8/+311
| | | | | | | | | | | | | | | | | | The main issues are: * JUnit 4.10 does not support giving Description instances a unique id, separate to its display name. * JUnit 4.10's BlockJUnit4ClassRunner.validateFields(List) method is private so cannot be overridden. * JUnit 4.10 requires test classes to be static. * JUnit 4.10 has no assertNotEquals() methods. * Some of the tests need to be run from the project's root directory in order to access file system resources. As a result those tests do not work when run on the device and so they are marked with @Ignore. Bug: 30244565 Test: Ran the junit-params-test using vogar Change-Id: I8f1bd602d07bedec1340373ad5747e3565ce617d
* Fix dependency on undefined order of Class.getMethods()Paul Duffin2016-07-201-2/+8
| | | | | | | | | | | | | | | | | The Class.getMethods() returns an array of methods from a class and its interfaces and super class but specifies that the order is undefined. The affected test indexes the array using an index of 0, presumably because it assumes that the method defined in the class comes before methods defined in the super class and interfaces. This is a bug in the upstream repository and is separated out from the other patches to make it easier to push it to the upstream repository. Bug: 30244565 Change-Id: I9e267b53614a46497e04c73841d086b83b536570 Test: Once it compiles the tests will be run.
* Workaround Android's lack of java.beans.PropertyEditor/ManagerPaul Duffin2016-07-203-51/+4
| | | | | | | | | | | | | | | | The classes are used to allow developers to customize JUnitParams' handling of conversion from literal String values to the type of parameters required by the parameterized test methods. This simply removes the code that uses the classes. That means developers who require custom data types will have to accept String parameters in their parameterized test methods and do the conversions manually. Bug: 30244565 Change-Id: I0dd479591d6fb60f0a08025c51ab3c9494c1bda2 Test: Once it compiles the tests will be run.
* Workaround Android's lack of javax.lang.model.type.NullTypePaul Duffin2016-07-205-11/+7
| | | | | | | | | | | | | The NullType class is used as a default value to indicate that the @Parameters source attribute has not been explicitly set. As such while it is externally visible it is not something that clients would be depending upon. Clients are highly unlikely to either check the source attribute themselves, or specify a value of Void.class so this change should be safe. Bug: 30244565 Test: Once it compiles the tests will be run. Change-Id: If2d1c73e81aabc98f1431206279e82e9e043f4c0
* Initial checkin of JUnitParams-1.0.5Paul Duffin2016-07-20157-0/+18632
| | | | | | | | | | | | | | Adds README.version, README.google, MODULE_LICENSE_APACHE2 files as required by the process (see b/30087411). The code does not yet compile; it requires patching to work with Android API and JUnit 4.10. Those patches will be added in separate commits to make it easy to identify the Android specific changes. All the changes will be submitted together. Bug: 30244565 Change-Id: Icf556377478c3afdd644c5e4db0ff18898f496ae Test: Once it compiles the tests will be run.
* Initial empty repositorykuantung2016-07-190-0/+0