[apex] Add failing sample for issue #1543
This commit is contained in:
@@ -17,6 +17,20 @@ public class Foo {
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>#1543 [apex] ApexUnitTestClassShouldHaveAsserts assumes APEX is case sensitive</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
@isTest
|
||||
public class Foo {
|
||||
public static testMethod void testSomething() {
|
||||
Account a = null;
|
||||
SYSTEM.AssertNotEquals(a, null, 'account not found');
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>#1521 [apex] ApexUnitTestClassShouldHaveAsserts: Parsing error on APEX class: expected one element but was: <BlockStatement, BlockStatement></description>
|
||||
<expected-problems>0</expected-problems>
|
||||
@@ -56,4 +70,4 @@ private class C2_Assignment_Report_Job_Test {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
</test-data>
|
||||
|
Reference in New Issue
Block a user