Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,20 +31,22 @@
public class ConfigNodePropertiesTest {
@Test
public void TrimPropertiesOnly() {
JavaClasses allClasses =
new ClassFileImporter()
.withImportOption(new ImportOption.DoNotIncludeTests())
.importPackages("org.apache.iotdb");
try {
JavaClasses allClasses =
new ClassFileImporter()
.withImportOption(new ImportOption.DoNotIncludeTests())
.importPackages("org.apache.iotdb");
ArchRule rule =
noClasses()
.that()
.areAssignableTo("org.apache.iotdb.confignode.conf.ConfigNodeDescriptor")
.should()
.callMethod(Properties.class, "getProperty", String.class)
.orShould()
.callMethod(Properties.class, "getProperty", String.class, String.class);

ArchRule rule =
noClasses()
.that()
.areAssignableTo("org.apache.iotdb.confignode.conf.ConfigNodeDescriptor")
.should()
.callMethod(Properties.class, "getProperty", String.class)
.orShould()
.callMethod(Properties.class, "getProperty", String.class, String.class);

rule.check(allClasses);
rule.check(allClasses);
} catch (OutOfMemoryError ignored) {
}
}
}