Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[apex] Merge main (7.x) branch into experimental-apex-parser and fix tests #4479

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
6669 commits
Select commit Hold shift + click to select a range
1252911
[java] Dataflow - use LinkedHashSet/LinkedHashMap to maintain predict…
adangel May 5, 2023
eaf4354
[doc] Update documentation regarding minimum-priority
adangel May 5, 2023
28eefd6
Fix #4492: GuardLogStatement with Java method reference
May 6, 2023
fa0be31
[cli] Add test for minimum-priority
adangel May 9, 2023
23756ec
[cli] Support numeric values for minimum-priority
adangel May 9, 2023
a35d647
[cli] Use RulePriority.name() for completion candidates
adangel May 9, 2023
d230be2
[doc] Update doc regarding --minimum-priority
adangel May 11, 2023
9a56cb3
Merge branch 'master' into pr-4551
adangel May 11, 2023
ab37e25
[doc] Update release notes (#4432, #4551)
adangel May 12, 2023
9e5d131
Merge pull request #4551 from oowekyala:issue4432-unnecessary-import-…
adangel May 12, 2023
a8bb9d9
Merge branch 'master' into pr-4426
adangel May 12, 2023
50efdaa
[core] Refactor cpdhtml.xslt and cpdhtml-v2.xslt
adangel May 12, 2023
6c635c5
Add test case
oowekyala May 12, 2023
16d92c2
[doc] CPD Report Formats - add xslt examples
adangel May 12, 2023
4635196
[doc] Update release notes (#4426)
adangel May 12, 2023
3aea46c
Fix #4457 - overload ambiguity
oowekyala May 12, 2023
c1a42f5
[core] Fix unit tests for cpdhtml xslt stylesheetst
adangel May 12, 2023
e8c0d57
Merge pull request #4426 from mohan-chinnappan-n:master
adangel May 12, 2023
c5790f1
Update release notes
oowekyala May 12, 2023
42ff3a3
Cleanup test
oowekyala May 16, 2023
11c06fd
Merge branch 'master' into pr-4431
adangel May 19, 2023
7d6d8d7
[doc] Update docs and release notes for Coco (#4431)
adangel May 19, 2023
23629f4
Merge pull request #4431 from tiobe:master
adangel May 19, 2023
1269635
[doc] Update list of supported languages
adangel May 19, 2023
6b4c6b2
Merge branch 'master' into pr-4470
adangel May 19, 2023
e3fd77a
[core] Doc and use new CPD option `--ignore-sequences`
adangel May 19, 2023
ce3d6d1
Add @wener-tiobe as a contributor
adangel May 19, 2023
75781f5
[doc] Update release notes (#4470)
adangel May 19, 2023
a1adcce
Merge pull request #4470 from tiobe:ignored-identifiers-and-literals
adangel May 19, 2023
9b3e76f
Update pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule…
adangel May 19, 2023
d628e80
Merge branch 'master' into pr-4507
adangel May 19, 2023
fe34cbd
[doc] Update release notes (#4507, #4503)
adangel May 19, 2023
e431831
Merge pull request #4507 from LynnBroe:issue4503
adangel May 19, 2023
b3d379c
Merge branch 'master' into pr-4533
adangel May 19, 2023
3f3216b
[java] AvoidBranchingStatementAsLastInLoopRule - only check finally
adangel May 19, 2023
337d261
[doc] Update release notes (#4063, #4533)
adangel May 19, 2023
605dce0
Merge pull request #4533 from LynnBroe:issue4063
adangel May 19, 2023
c4fb7af
Merge branch 'master' into pr-4536
adangel May 19, 2023
c6ab61c
[java] CommentDefaultAccessModifier - exclude more testng annotations
adangel May 19, 2023
327ac5e
[doc] Update release notes (#4268, #4536)
adangel May 19, 2023
d6deabe
Merge pull request #4536 from LynnBroe:issue4268
adangel May 19, 2023
97343c7
[doc] Update release notes
adangel May 19, 2023
e243da6
Merge branch 'master' into pr-4425
adangel May 19, 2023
52b9d61
[ci] Update m-pmd-p version for dogfood checks
adangel May 19, 2023
11f0e8a
[core] Rework slf4j reinitialization
adangel May 20, 2023
110235c
[core] Move property equals implementation into AbstractPropertySource
adangel May 20, 2023
429ab23
[core] Move property equals implementation into AbstractPropertySource
adangel May 20, 2023
68db058
Merge pull request #4567 from adangel/slf4j-logging-reconfiguration
jsotuyod May 22, 2023
59345b9
Merge pull request #4560 from oowekyala/issue4557-unnecessary-import-…
jsotuyod May 22, 2023
bcf8bdd
Merge pull request #4550 from adangel/pmd-processor-threads
jsotuyod May 22, 2023
18b14c8
[doc] Update release notes (#4557) [skip ci]
adangel May 26, 2023
191b9de
Merge branch 'master' into pmd7-textfile-display-name
oowekyala May 26, 2023
0c0d756
Merge remote-tracking branch 'origin/pmd7-textfile-display-name' into…
oowekyala May 26, 2023
c358b39
Merge branch 'master' into issue4434-exceptionasflowcontrol
oowekyala May 26, 2023
7e07ee8
Update release notes, ref #4543
oowekyala May 26, 2023
1474ab5
Merge remote-tracking branch 'origin/issue4434-exceptionasflowcontrol…
oowekyala May 26, 2023
3c01697
Merge branch 'master' into pr/4466
oowekyala May 26, 2023
81233fa
Merge branch 'master' into pr/4549
oowekyala May 26, 2023
ffeb9ab
Merge branch 'master' into pr/4548
oowekyala May 26, 2023
fd0416c
Merge branch 'master' into port-properties
oowekyala May 26, 2023
715f49d
Merge remote-tracking branch 'origin/port-properties' into port-prope…
oowekyala May 26, 2023
f2cd5ab
Merge branch 'master' into clem.pmd7-refactor-cpd
oowekyala May 26, 2023
2f067dd
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd
oowekyala May 26, 2023
d568ea7
Update LanguageRegistry.java javadoc
jsotuyod May 26, 2023
8b952c2
[doc] Update release notes for rc3 (#4434, #4549) [skip ci]
adangel May 26, 2023
ce6a3e2
Merge branch 'master' into fix-assembly-finalName
adangel May 28, 2023
f147c76
Update gems - use pmdtester 1.5.4
adangel May 28, 2023
c0364e2
[doc] Update release notes (#4460)
adangel May 28, 2023
01d055d
[doc] Fix old rule name example
adangel May 28, 2023
a9b9672
Merge branch 'master' into minimum-priority
adangel May 28, 2023
e290420
Merge branch 'master' into pr-4537
adangel May 28, 2023
1a74cc2
[doc] Update release notes (#4455, #4537)
adangel May 28, 2023
263d368
Merge branch 'master' into pr-4538
adangel May 28, 2023
8f0cf6e
[doc] Update release notes (#4456, #4538)
adangel May 28, 2023
cf83a91
Merge pull request #4460 from adangel:fix-assembly-finalName
adangel May 28, 2023
0499e4b
Merge pull request #4552 from adangel:minimum-priority
adangel May 28, 2023
3a82552
Merge pull request #4537 from LynnBroe:issue4455
adangel May 28, 2023
07a9c0d
Merge pull request #4538 from LynnBroe:issue4456
adangel May 28, 2023
4dd2497
Merge branch 'master' into pr-4541
adangel May 28, 2023
adb7fa2
[doc] Update release notes (#4458, #4541)
adangel May 28, 2023
2d004a1
Merge branch 'master' into pr-4542
adangel May 28, 2023
0f1453c
[doc] Update release notes (#4510, #4542)
adangel May 28, 2023
d6ee587
Merge pull request #4541 from LynnBroe:issue4458
adangel May 28, 2023
348248e
Merge pull request #4542 from LynnBroe:issue4510
adangel May 28, 2023
96dce89
Merge branch 'master' into pr-4545
adangel May 28, 2023
f8ec89b
[doc] Update release notes (#4433, #4545)
adangel May 28, 2023
8742cbe
Merge pull request #4545 from oowekyala:issue4433-hashtable-properties
adangel May 28, 2023
5aa917b
Merge branch 'master' into pr-4553
adangel May 28, 2023
47bb75d
Add @anastasiia-koba as a contributor
adangel May 28, 2023
dea05bf
[doc] Update release notes (#4492, #4543)
adangel May 28, 2023
7584ba3
Merge pull request #4553 from anastasiia-koba:issue-4492
adangel May 28, 2023
fc13c32
Merge branch 'master' into pmd7-textfile-display-name
oowekyala May 28, 2023
bf64735
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd
oowekyala May 28, 2023
700df96
Merge branch 'master' into port-properties
oowekyala May 28, 2023
9b098b8
Update release notes
oowekyala May 28, 2023
ae452c0
Update docs
oowekyala May 28, 2023
aa716ac
Fix CPD renderer tests on windows
oowekyala May 28, 2023
ac33663
Fix CPD cli tests
oowekyala May 29, 2023
bd42296
Fix distribution IT
oowekyala May 29, 2023
5c4a566
Doc for CPD
oowekyala May 29, 2023
5c436c7
Fix cpd outputting unix paths on windows
oowekyala May 29, 2023
885ab6c
Lint
oowekyala May 29, 2023
802ebc6
[doc] Update release notes (#4425)
adangel May 29, 2023
8f486e1
Merge pull request #4425 from oowekyala:pmd7-textfile-display-name
adangel May 29, 2023
17beee6
[core] TextDocument: Add backwards compatible factory method
adangel May 30, 2023
25e230a
[dist] Add jcommander back
adangel May 30, 2023
e96c2c0
Prepare pmd release 7.0.0-rc3
adangel May 30, 2023
7d6d303
[release] prepare release pmd_releases/7.0.0-rc3
adangel May 30, 2023
835b625
[release] prepare for next development iteration
adangel May 30, 2023
8a26648
Prepare next development version [skip ci]
adangel May 30, 2023
cd572a9
[doc] Restore release notes for next rc [skip ci]
adangel May 30, 2023
9e5305f
[ci] Fix uploading doc to sourceforge
adangel Jun 1, 2023
4d7d36b
[ci] Fix selecting default on sourceforge
adangel Jun 1, 2023
c112378
[dist] Fix duplicated dependency
adangel Jun 1, 2023
e6428eb
[doc] Update release notes (#4582)
adangel Jun 1, 2023
be59b47
[java] Fix test cases so that PMD can be built with Java19+
adangel Jun 1, 2023
e8dbb54
Merge pull request #4584 from adangel/issue-4401
jsotuyod Jun 1, 2023
d253f36
[doc] Add migration guide for PMD 7
adangel Jun 2, 2023
d0817da
Update migration guide
adangel Jun 9, 2023
9b1431d
Update migration guide (xpath rules)
adangel Jun 10, 2023
c54d3bb
Merge branch 'master' into clem.pmd7-refactor-cpd
oowekyala Jun 10, 2023
4ef43e9
Fixups
oowekyala Jun 10, 2023
629e3b4
Consolidate CPD packages
oowekyala Jun 10, 2023
287a9a2
Move forgotten things into language specific packages
oowekyala Jun 10, 2023
6f6608d
Delete cpp default version
oowekyala Jun 10, 2023
d07240c
Update migration guide (Node and NodeStream)
adangel Jun 10, 2023
a43a3d7
Update migration guide (Java AST)
adangel Jun 10, 2023
efecee4
Add deprecated to Tokens ctor
oowekyala Jun 10, 2023
86f06ae
Update migration guide (Java AST)
adangel Jun 10, 2023
08f3776
Update migration guide (Java AST, Annotations)
adangel Jun 10, 2023
6ad8363
Update migration guide (Java AST, Types, Declarations)
adangel Jun 11, 2023
ae506ac
[doc] Update all contributors (@linusjf)
adangel Jun 24, 2023
92ae88b
[ci] Use new aether properties to configure http ttl for maven
adangel Jun 24, 2023
40b0f5e
[ci] Next try to fix maven downloads
adangel Jun 24, 2023
69e15ba
Bump maven from 3.9.0 to 3.9.2
adangel Jun 24, 2023
601abc0
[ci] Increase maven download ttl to 180s again
adangel Jun 24, 2023
d238de5
[ci] Upload regression tester report as artifact
adangel Jun 24, 2023
03a5b75
[apex] ExcessivePublicCount: consider properties
adangel Jun 24, 2023
6a3eb6f
Merge pull request #4604 from adangel/issue-4596-apex-excessivepublic…
jsotuyod Jun 24, 2023
47d3728
[doc] Update release notes
adangel Jun 24, 2023
8d08ab2
[ci] Fix path for regression tester artifact upload
adangel Jun 24, 2023
d0bc4c7
[ci] Fix path for regression tester artifact upload (again)
adangel Jun 24, 2023
f5829ac
[ci] Fix path for regression tester artifact upload (again)
adangel Jun 24, 2023
79b5904
Merge branch 'master' into pr-4528
adangel Jun 26, 2023
68cc4e7
Fix test - add workaround for differing antlr versions
adangel Jun 26, 2023
60dfa53
Fix checkstyle
adangel Jun 26, 2023
e084b49
[doc] Update release notes (#4528)
adangel Jun 26, 2023
1d66177
Update @nawforce as a contributor
adangel Jun 26, 2023
2f36868
Merge pull request #4528 from nawforce/update-apexlink
adangel Jun 26, 2023
ec201c9
Update migration guide (Java AST: Body declarations, Module declarati…
adangel Jun 30, 2023
0557c5c
Add tests for UseDiamondOperator
oowekyala Jul 2, 2023
b327c13
Make ClasspathClassLoader::getResource child first
oowekyala Jul 2, 2023
11ca295
Add test
oowekyala Jul 2, 2023
9673a23
Update release notes
oowekyala Jul 2, 2023
4394889
Update migration guide (Java AST: Flattened Statements)
adangel Jul 6, 2023
3a6fe3d
[doc] Update release notes - removed apex rules
adangel Jul 6, 2023
42aee1d
Simplify test case
adangel Jul 6, 2023
3e2de67
Merge pull request #4621 from oowekyala:issue4620-classloading-child-…
adangel Jul 6, 2023
b53214e
Update migration guide (Java AST: Statements)
adangel Jul 7, 2023
3164e93
Update migration guide (Java AST: Expressions)
adangel Jul 7, 2023
0bc59a8
Update migration guide (Java AST: Expressions)
adangel Jul 7, 2023
6f278c4
[java] Update JavaDesignerBindings: Expose Operator as main attribute
adangel Jul 7, 2023
5813391
Apply suggestions from review
adangel Jul 7, 2023
cb493bb
Update migration guide
adangel Jul 8, 2023
41964fe
Update migration guide (Language versions, Build Tools)
adangel Jul 8, 2023
55f7460
Update migration guide (Java AST)
adangel Jul 8, 2023
a065600
Update migration guide (Final touches)
adangel Jul 8, 2023
91d7cc2
Refs https://github.com/pmd/pmd/issues/4634
krdabrowski Aug 4, 2023
8523adc
[doc] Update release notes (#4637, #4634)
adangel Aug 5, 2023
7b5a70e
Add @krdabrowski as a contributor
adangel Aug 5, 2023
1021b3b
Merge pull request #4637 from krdabrowski:fix-4634
adangel Aug 5, 2023
510608f
Bump cyclonedx-maven-plugin from 2.7.6 to 2.7.9
adangel Aug 4, 2023
2b0cadf
Bump maven from 3.9.2 to 3.9.4
adangel Aug 10, 2023
f980c1f
[doc] Make side fixed only for big screens
adangel Aug 10, 2023
b73611f
Merge branch 'master' into pr-4380
adangel Aug 10, 2023
faa2d0a
[ci] Stop uploading regression tester record to chunk.io
adangel Aug 10, 2023
67fac20
[doc] Update doc about (rule) properties
adangel Aug 12, 2023
28c017c
[doc] Update release notes (rule properties)
adangel Aug 12, 2023
ea11fcd
[core] Minor refactorings
adangel Aug 12, 2023
8681e8d
[ci] Update Dangerfile - fix link to download regression report
adangel Aug 12, 2023
3ea4031
[core] PropertyDescriptor - remove deprecated methods
adangel Aug 12, 2023
79d6e8b
[core] NumericConstraints - add tests for above/below
adangel Aug 12, 2023
5eea2f3
[core] Add tests in RuleSetFactoryMessages
adangel Aug 12, 2023
5846666
[core] Support min/max as property constraints in RuleSetWriter
adangel Aug 15, 2023
24257a0
[core] revert property collection syntax <seq>
adangel Aug 15, 2023
894d9fb
Merge branch 'master' into pr-4397
adangel Aug 17, 2023
86fdc44
Suppress PMD warnings (UnnecessaryConstructor)
adangel Aug 17, 2023
a9ed11b
[doc] Fix dead links
adangel Aug 17, 2023
d85a1a7
Add SObjectType and SObjectField to list of injectable SOQL variable …
rcorfieldffdc Aug 16, 2023
bcbaffc
Add unit tests for the behavior I hope to see
rcorfieldffdc Aug 17, 2023
10a50b8
[ci] Use adjusted m-pmd-p for dogfood
adangel Aug 17, 2023
2ab8447
Remove the tests related to issue 4650
rcorfieldffdc Aug 18, 2023
8f19067
A neater set instantiation
rcorfieldffdc Aug 18, 2023
4151ca1
Fix Checkstyle errors by changing tab indentation to spaces
rcorfieldffdc Aug 18, 2023
9aa8101
Merge pull request #4643 from adangel/issue-4521-mobile-website
jsotuyod Aug 22, 2023
027fb4b
Merge pull request #4380 from oowekyala:port-properties
adangel Aug 22, 2023
9ce9b24
[doc] Mention pmd-languages-deps and module
adangel Aug 24, 2023
df08d08
[apex] Remove cpd property CASE_SENSITIVE
adangel Aug 24, 2023
67cbb94
[cli] Move option "--relativize-paths-with" up to AbstractAnalysisPmd…
adangel Aug 24, 2023
c6a63da
[cli] Remove todo about slf4j
adangel Aug 24, 2023
5200cc9
[cli] Fix javadoc
adangel Aug 24, 2023
3984dc2
[core] Configurations - keep fields private
adangel Aug 24, 2023
932ac33
Merge branch 'master' into pr-4397
adangel Aug 24, 2023
681c528
[core] Create CpdLanguageProperties
adangel Aug 24, 2023
6298d87
[core] Add minimal javadoc for CpdAnalysis
adangel Aug 24, 2023
8511c7b
[core] Move PmdCapableLanguage to n.sf.pmd.lang
adangel Aug 24, 2023
41ff4be
[php] Recognize "//" as eol comment
adangel Aug 24, 2023
8085673
Fix checkstyle
adangel Aug 24, 2023
32afa53
All language modules: getInstance()
adangel Aug 24, 2023
908f480
[core] CPD GUI - fix empty SourceManager
adangel Aug 26, 2023
c1109b4
[core] Fix potential NPE in SourceManager
adangel Aug 26, 2023
1aefe47
Add correct tokenizers for vm, pom, wsdl and xsl
adangel Aug 26, 2023
a2765a1
[doc] Update CPD supported languages
adangel Aug 27, 2023
ad4a19f
[doc] CPD Language Properties
adangel Aug 27, 2023
f65a7cb
[doc] Release notes and API changes (#3919, #4204, #4323, #4397)
adangel Aug 27, 2023
fc0b3ad
[doc] Release notes (#4397)
adangel Aug 27, 2023
056b339
Merge pull request #4397 from oowekyala:clem.pmd7-refactor-cpd
adangel Aug 29, 2023
55eefca
Merge branch 'master' into issue-4294-migration-guide
adangel Aug 31, 2023
859a06a
[doc] List rules which use now a different delimiter for multi-valued…
adangel Aug 31, 2023
55c65fa
[doc] Update version of maven-pmd-plugin
adangel Aug 31, 2023
aeba5f4
[doc] Add "Migrating custom CPD language modules"
adangel Aug 31, 2023
a0b700d
[doc] Use unicode left arrow ➡️ instead of ->
adangel Aug 31, 2023
61b6037
[doc] Update release notes (#4294, #4590)
adangel Aug 31, 2023
512d6cb
Merge pull request #4590 from adangel:issue-4294-migration-guide
adangel Aug 31, 2023
d79df96
Update CpdCommand.java
wener-tiobe Sep 6, 2023
ba35bdc
[doc] AutoClosable -> AutoCloseable
AndreyBozhko Sep 6, 2023
b4150af
[doc] Update release notes (#4665)
adangel Sep 8, 2023
dc1d4f9
Add @AndreyBozhko as a contributor
adangel Sep 8, 2023
ca53c60
Merge pull request #4665 from AndreyBozhko:autocloseable
adangel Sep 8, 2023
8db5e83
[cli] Add test case for CPD --file-list
adangel Sep 9, 2023
7076f16
[doc] Update release notes (#4423, #4664)
adangel Sep 9, 2023
19f14e9
Merge pull request #4664 from wener-tiobe:patch-1
adangel Sep 9, 2023
71e622f
:memo: update integrations md
cyw3 Aug 21, 2023
deb60b1
[doc] Sort tools for automatic code review alphabetically
adangel Sep 9, 2023
ecb6b39
[doc] Update release notes (#4651)
adangel Sep 9, 2023
c6a10db
Update @cyw3 as a contributor
adangel Sep 9, 2023
a2a64a7
Merge pull request #4651 from cyw3:master (rebased)
adangel Sep 9, 2023
7d0e1f0
[doc] Update release notes (#4649, #4646)
adangel Sep 9, 2023
007deca
Add @rcorfieldffdc as a contributor
adangel Sep 9, 2023
a364447
Add @m0rjc as a contributor
adangel Sep 9, 2023
347d599
Merge pull request #4649 from rcorfieldffdc:defect/4646-apex-soql-inj…
adangel Sep 9, 2023
1760196
[core][apex] Support TextDocument#offsetAtLineColumn
adangel Sep 14, 2023
30416ae
[apex] ASTMethod#getImage - Use BaseApexClass
adangel Sep 14, 2023
82bc73c
Merge branch 'master' into pr-4479
adangel Sep 14, 2023
22f5a09
Fix pmd issues - LooseCoupling
adangel Sep 14, 2023
55ee8b3
[apex] Improve handling of <clinit> and such...
adangel Sep 21, 2023
b015bda
[apex] Use current languageVersion for ApexVersion property
adangel Sep 21, 2023
3757191
[apex] Refactor AntlrVersionCheckSuppression
adangel Sep 21, 2023
cc7d97c
[vf] Restore test ApexClassPropertyTypesVisitorTest
adangel Sep 21, 2023
e191bb9
Fix unused import
adangel Sep 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -106,45 +106,6 @@ public static DataType fromString(String value) {

/**
* Map to correct instance, returns {@code Unknown} if the value can't be mapped.
<<<<<<< HEAD
=======
*
* @deprecated Use {@link #fromTypeName(String)} instead.
*/
@Deprecated
public static DataType fromBasicType(BasicType value) {
if (value != null) {
switch (value) {
case BOOLEAN:
return Checkbox;
case CURRENCY:
return Currency;
case DATE:
return Date;
case DATE_TIME:
return DateTime;
case ID:
return Lookup;
case DECIMAL:
case DOUBLE:
case INTEGER:
case LONG:
return Number;
case STRING:
return Text;
case TIME:
return Time;
default:
break;
}
}
LOG.debug("Unable to determine DataType of {}", value);
return Unknown;
}

/**
* Map to correct instance, returns {@code Unknown} if the value can't be mapped.
>>>>>>> origin/master
*/
public static DataType fromTypeName(String value) {
value = value != null ? value : "";
Expand Down
Expand Up @@ -10,13 +10,8 @@

import org.junit.jupiter.api.Test;

<<<<<<< HEAD
public class DataTypeTest {
=======
import apex.jorje.semantic.symbol.type.BasicType;

class DataTypeTest {
>>>>>>> origin/master

@Test
void testFromString() {
assertEquals(DataType.AutoNumber, DataType.fromString("AutoNumber"));
Expand All @@ -37,21 +32,8 @@ void testFromTypeName() {
assertEquals(DataType.Unknown, DataType.fromTypeName(null));
}

@Test
<<<<<<< HEAD
public void testRequiresEncoding() {
=======
void testDeprecatedFromBasicType() {
assertEquals(DataType.Checkbox, DataType.fromBasicType(BasicType.BOOLEAN));
assertEquals(DataType.Number, DataType.fromBasicType(BasicType.DECIMAL));
assertEquals(DataType.Number, DataType.fromBasicType(BasicType.DOUBLE));
assertEquals(DataType.Unknown, DataType.fromBasicType(BasicType.APEX_OBJECT));
assertEquals(DataType.Unknown, DataType.fromBasicType(null));
}

@Test
void testRequiresEncoding() {
>>>>>>> origin/master
assertFalse(DataType.AutoNumber.requiresEscaping);
assertTrue(DataType.Text.requiresEscaping);
}
Expand Down
Expand Up @@ -45,7 +45,9 @@ void testApexClassIsProperlyParsed() {
assertTrue("ID".equalsIgnoreCase(variableNameToVariableType.get("ApexController.AccountIdProp")));
assertTrue("ID".equalsIgnoreCase(variableNameToVariableType.get("ApexController.AccountId")));
assertTrue("String".equalsIgnoreCase(variableNameToVariableType.get("ApexController.AccountName")));
assertTrue("InnerController".equalsIgnoreCase(variableNameToVariableType.get("ApexController.InnerController")));
// TODO: debug
System.out.println("ApexController.InnerController type = " + variableNameToVariableType.get("ApexController.InnerController"));
// assertTrue("InnerController".equalsIgnoreCase(variableNameToVariableType.get("ApexController.InnerController")));
adangel marked this conversation as resolved.
Show resolved Hide resolved
assertTrue("ID".equalsIgnoreCase(variableNameToVariableType.get("ApexController.InnerController.InnerAccountIdProp")));
assertTrue("ID".equalsIgnoreCase(variableNameToVariableType.get("ApexController.InnerController.InnerAccountId")));
assertTrue("String".equalsIgnoreCase(variableNameToVariableType.get("ApexController.InnerController.InnerAccountName")));
Expand Down