public abstract class CommonFramework extends Object implements Framework
| Constructor and Description |
|---|
CommonFramework() |
| Modifier and Type | Method and Description |
|---|---|
TestCaseMethodType |
checkMethodType(org.objectweb.asm.tree.MethodNode mn)
Check whether a method is test or cleanup method
|
boolean |
fit(Set<String> classAnnotations,
Set<String> methodAnnotations)
Check whether the test class using current test framework
|
org.objectweb.asm.tree.MethodNode |
getCleanupMethod(String className)
Generate cleanup method with correct name and annotations
|
abstract String |
getCleanupMethodAnnotation()
Get annotation that identify test cleanup method
|
abstract List<String> |
getTestMethodAnnotations()
Get all annotations that identify test case method
|
public boolean fit(Set<String> classAnnotations, Set<String> methodAnnotations)
Frameworkpublic TestCaseMethodType checkMethodType(org.objectweb.asm.tree.MethodNode mn)
FrameworkcheckMethodType in interface Frameworkmn - method nodepublic org.objectweb.asm.tree.MethodNode getCleanupMethod(String className)
FrameworkgetCleanupMethod in interface FrameworkclassName - full name of test classpublic abstract List<String> getTestMethodAnnotations()
public abstract String getCleanupMethodAnnotation()
Copyright © 2021. All rights reserved.