~ubuntu-branches/ubuntu/precise/surefire/precise

« back to all changes in this revision

Viewing changes to surefire-integration-tests/src/test/resources/surefire-733-allOverridesCaptured/src/test/java/junit/surefire733/ATest.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2011-10-10 20:42:16 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20111010204216-cemva69wkagf4fay
Tags: 2.10-1
* Team upload.
* New upstream release.
* Refresh and remove unneccesary patches.
* Add Build-Depends on libsurefire-java and
  libmaven-common-artifact-filters-java.
* Drop outdated Maven artifact surefire-junit.
* Provide new Maven artifacts: surefire-junit3, maven-surefire-common,
  common-junit3, common-junit4, surefire-junit47 and surefire-testng-utils.
* Fix clean target to allow "two in a row" builds.
* Update Vcs-Browser field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package junit.surefire733;
 
2
import junit.framework.TestCase;
 
3
 
 
4
 
 
5
public class ATest
 
6
    extends TestCase
 
7
{
 
8
    public void testConsoleOut() {
 
9
        System.out.write( (int) 'a');
 
10
        final byte[] bytes = "bc".getBytes();
 
11
        System.out.write(bytes, 0, bytes.length);
 
12
        System.out.write('\n');
 
13
        System.out.println("ABC");
 
14
        System.out.println((String)null);
 
15
 
 
16
        final byte[] errbytes = "ef".getBytes();
 
17
        System.err.write( (int) 'z' );
 
18
        System.err.write(errbytes, 0, bytes.length);
 
19
        System.err.write('\n');
 
20
 
 
21
 
 
22
        System.err.println("XYZ");
 
23
        System.err.println((String)null);
 
24
 
 
25
    }
 
26
}