forked from junit-team/junit4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ArrayComparisonFailure serialization incompatibility fix (junit-team#…
…1315) * Add back field fCause, initialize and use it in the constructor (via initCause()) to avoid NPE and unused field warnings, respectively. * Override getCause() to allow fallback to the deprecated fCause field. * Run tests around possible forward incompatibility of the class from r4.11, 4.12. Fixes junit-team#1178.
- Loading branch information
0 parents
commit d74d24d
Showing
515 changed files
with
48,534 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="src" path="src/test/java"/> | ||
<classpathentry kind="src" path="src/test/resources"/> | ||
<classpathentry kind="src" path="src/main/resources"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> | ||
<classpathentry exported="true" kind="lib" path="lib/hamcrest-core-1.3.jar" sourcepath="lib/hamcrest-core-1.3-sources.jar"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
MaxCore.ser | ||
bin | ||
junit4.* | ||
target | ||
MaxCore.max | ||
# IntelliJ | ||
.idea | ||
*.ipr | ||
*.iml | ||
*.iws | ||
out | ||
java.hprof.txt | ||
.gitattributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>junit</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.team.cvs.core.cvsnature</nature> | ||
</natures> | ||
</projectDescription> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#Tue Jul 22 09:31:38 PDT 2008 | ||
eclipse.preferences.version=1 | ||
formatter_profile=_junit | ||
formatter_settings_version=11 | ||
internal.default.compliance=default | ||
org.eclipse.jdt.ui.exception.name=e | ||
org.eclipse.jdt.ui.gettersetter.use.is=true | ||
org.eclipse.jdt.ui.ignorelowercasenames=true | ||
org.eclipse.jdt.ui.importorder=java;javax;com; | ||
org.eclipse.jdt.ui.keywordthis=false | ||
org.eclipse.jdt.ui.ondemandthreshold=99 | ||
org.eclipse.jdt.ui.overrideannotation=true | ||
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: java | ||
script: mvn verify javadoc:javadoc site:site | ||
jdk: | ||
- oraclejdk7 | ||
- oraclejdk8 | ||
- openjdk7 | ||
- openjdk6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
BUILDING FROM GITHUB: | ||
===================== | ||
|
||
git clone https://github.com/junit-team/junit4.git | ||
cd junit | ||
mvn install | ||
|
||
BUILDING FROM JARS OR ZIPS: | ||
=========================== | ||
|
||
The contents of the zip and jar files are largely maintained for historical | ||
reasons. We do not at this time have an official way to build from the src | ||
jar or zip. If this is an important missing feature, please let us know | ||
at http://github.com/junit-team/junit4/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
JUnit project uses the Google Java Style (https://github.com/google/styleguide) for all new | ||
code (under org.junit.*). Deviating from this, indentation is 4 spaces instead of 2. | ||
|
||
Legacy code (under junit.*) used the legacy guide specified in LEGACY_CODING_STYLE.txt in the | ||
project root. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
### Project License: Eclipse Public License v1.0 | ||
|
||
- You will only Submit Contributions where You have authored 100% of the content. | ||
- You will only Submit Contributions to which You have the necessary rights. This means that if You are employed You have received the necessary permissions from Your employer to make the Contributions. | ||
- Whatever content You Contribute will be provided under the Project License(s). | ||
|
||
--- | ||
|
||
### How to submit a pull request | ||
|
||
We love pull requests. Here is a quick guide: | ||
|
||
1. You need to have Maven and a JDK (at least version 1.5) installed. | ||
2. [Fork the repo](https://help.github.com/articles/fork-a-repo). | ||
3. [Create a new branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/) from master. | ||
4. Ensure that you have a clean state by running `mvn verify`. | ||
5. Add your change together with a test (tests are not needed for refactorings and documentation changes). | ||
6. Format your code: Import the JUnit project in Eclipse and use its formatter or apply the rules in the `CODING_STYLE` file manually. Only format the code you've changed; reformatting unrelated code makes it harder for us to review your changes. | ||
7. Run `mvn verify` again and ensure all tests are passing. | ||
8. Push to your fork and [submit a pull request](https://help.github.com/articles/creating-a-pull-request/). | ||
|
||
Now you are waiting on us. We review your pull request and at least leave some comments. | ||
|
||
|
||
Note that if you are thinking of providing a fix for one of the bugs or feature requests, it's usually | ||
a good idea to add a comment to the bug to make sure that there's agreement on how we should proceed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
================================== | ||
Coding style | ||
================================== | ||
|
||
---------------------------------- | ||
Tabs and Indents | ||
---------------------------------- | ||
* Tab size : 4 | ||
* Indent : 4 | ||
* Continuation indent : 8 | ||
* Label indent : 0 | ||
|
||
> Don't use tab characters. | ||
|
||
---------------------------------- | ||
Spaces | ||
---------------------------------- | ||
Before Parentheses | ||
* if parentheses | ||
* for parentheses | ||
* while parentheses | ||
* switch parentheses | ||
* try parentheses | ||
* catch parentheses | ||
* synchronized parentheses | ||
|
||
Around Operators | ||
* Assignment operators (=, +=, …) | ||
* Logical operators (&&, ||) | ||
* Equality operators (==, !=) | ||
* Relational operators (<, >, <=, >=) | ||
* Bitwise operators (&, |, ^) | ||
* Additive operators (+, -) | ||
* Multiplicative operators (*, /, %) | ||
* Shift operators (<<, >>, >>>) | ||
|
||
Before Left Brace | ||
* Class left brace | ||
* Method left brace | ||
* if left brace | ||
* else left brace | ||
* for left brace | ||
* while left brace | ||
* do left brace | ||
* switch left brace | ||
* try left brace | ||
* catch left brace | ||
* finally left brace | ||
* synchronized left brace | ||
|
||
Before Keywords | ||
* else keyword | ||
* while keyword | ||
* catch keyword | ||
* finally keyword | ||
|
||
In Ternary Operator (?:) | ||
* Before ? | ||
* After ? | ||
* Before : | ||
* After : | ||
|
||
Within Type Arguments | ||
* After comma | ||
|
||
Other | ||
* After comma | ||
* After semicolon | ||
* After type cast | ||
|
||
---------------------------------- | ||
Wrapping and Braces | ||
---------------------------------- | ||
Braces placement | ||
* In class declaration : End of line | ||
* In method declaration : End of line | ||
* Other : End of line | ||
|
||
Use Of Braces | ||
* if() statement : When multiline | ||
* for() statement : When multiline | ||
* while() statement : When multiline | ||
* do .. while() statement : When multiline | ||
|
||
Annotations | ||
* Class annotations : Wrap always | ||
* Method annotations : Wrap always | ||
* Field annotations : Wrap always | ||
* Parameter annotations : Do not wrap | ||
* Local variable annotations : Do not wrap | ||
|
||
---------------------------------- | ||
Blank Lines | ||
---------------------------------- | ||
Minimum Blank Lines | ||
* Before package statement : 0 | ||
* After package statement : 1 | ||
* Before imports : 1 | ||
* After imports : 1 | ||
* Around class : 1 | ||
* After class header : 0 | ||
* After anonymous class header : 0 | ||
* Around field in interface : 0 | ||
* Around field : 0 | ||
* Around method in interface : 1 | ||
* Around method : 1 | ||
* Before method body : 0 | ||
|
||
---------------------------------- | ||
JavaDoc | ||
---------------------------------- | ||
Alignment | ||
* Align thrown exception descriptions | ||
|
||
Blank Lines | ||
* After description | ||
|
||
Other | ||
* Enable leading asterisks | ||
* Use @throws rather than @exception | ||
* Keep empty lines | ||
|
||
---------------------------------- | ||
Imports | ||
---------------------------------- | ||
import static (all other imports) | ||
<blank line> | ||
import java.* | ||
import javax.* | ||
import com.* | ||
<blank line> | ||
import (all other imports) |
Oops, something went wrong.