harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-634) Pack200 file with just resources
Date Mon, 04 Jun 2007 17:20:35 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Ellison closed HARMONY-634.
-------------------------------


> Pack200 file with just resources
> --------------------------------
>
>                 Key: HARMONY-634
>                 URL: https://issues.apache.org/jira/browse/HARMONY-634
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alex Blewitt
>            Assignee: Tim Ellison
>            Priority: Trivial
>         Attachments: JustResources.pack, JustResources.patch
>
>
> This file is a pack200 Jar file that just contains resources, which can be used to substitute
the HelloWorld.pack that's used in the SegmentTest test case.  I've commented out the one
that will fail and the JustResources.pack can be put in the same place as the HelloWorld.pack
one
> Index: /Users/alex/Documents/HarmonyWorkspace/Pack200/src/test/java/org/apache/harmony/archive/tests/internal/pack200/SegmentTest.java
> ===================================================================
> --- /Users/alex/Documents/HarmonyWorkspace/Pack200/src/test/java/org/apache/harmony/archive/tests/internal/pack200/SegmentTest.java
(revision 415823)
> +++ /Users/alex/Documents/HarmonyWorkspace/Pack200/src/test/java/org/apache/harmony/archive/tests/internal/pack200/SegmentTest.java
(working copy)
> @@ -29,9 +29,17 @@
>  	 * @param args
>  	 * @throws Exception
>  	 */
> -	public void testHelloWorld() throws Exception {
> +//	public void testHelloWorld() throws Exception {
> +//		assertNotNull(Segment.parse(Segment.class
> +//				.getResourceAsStream("/org/apache/harmony/archive/tests/internal/pack200/HelloWorld.pack")));
> +//	}
> +	/**
> +	 * @param args
> +	 * @throws Exception
> +	 */
> +	public void testJustResources() throws Exception {
>  		assertNotNull(Segment.parse(Segment.class
> -				.getResourceAsStream("/org/apache/harmony/archive/tests/internal/pack200/HelloWorld.pack")));
> +				.getResourceAsStream("/org/apache/harmony/archive/tests/internal/pack200/JustResources.pack")));
>  	}
>  
>  }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message