]> source.dussan.org Git - aspectj.git/commitdiff
assert is a warning in 1.4
authoracolyer <acolyer>
Tue, 8 Jun 2004 13:58:18 +0000 (13:58 +0000)
committeracolyer <acolyer>
Tue, 8 Jun 2004 13:58:18 +0000 (13:58 +0000)
ajde/testsrc/org/aspectj/ajde/BuildConfigurationTests.java

index 219e32dd90028cd0461652dcd1d8ec4bff136b26..61e96f396f4151b7d194a6778dd4ee009d2e548e 100644 (file)
@@ -62,12 +62,12 @@ public class BuildConfigurationTests extends AjdeTestCase {
 
        // The tests...
        public void testCharacterEncoding() {
-               buildOptions.setCharacterEncoding( "12345" );
+               buildOptions.setCharacterEncoding( "UTF-8" );
                buildConfig = compilerAdapter.genBuildConfig( configFile );
         assertTrue(configFile + " failed", null != buildConfig);                       
                Map options = buildConfig.getOptions().getMap();
                String encoding = (String) options.get( CompilerOptions.OPTION_Encoding );
-               assertEquals( "character encoding", "12345", encoding );
+               assertEquals( "character encoding", "UTF-8", encoding );
        }
        
        public void testComplianceLevel() {
@@ -149,7 +149,7 @@ public class BuildConfigurationTests extends AjdeTestCase {
                assertOptionEquals( "report assert identifer",
                                                        options, 
                                                    CompilerOptions.OPTION_ReportAssertIdentifier,
-                                                   CompilerOptions.IGNORE);                                                
+                                                   CompilerOptions.WARNING);                                               
        }
        
 //     public void testEmptyWarnings() {
@@ -282,7 +282,7 @@ public class BuildConfigurationTests extends AjdeTestCase {
         assertTrue(configFile + " failed", null != buildConfig);            
                Map options = buildConfig.getOptions().getMap();
                
-               // this should leave us with the debug on
+               // this should leave us with the default debug 
                assertOptionEquals( "debug source",
                                                        options, 
                                                    CompilerOptions.OPTION_SourceFileAttribute,