-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from Zir0-93/test_improvements
Test improvements
- Loading branch information
Showing
25 changed files
with
666 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> | ||
<fileset name="all" enabled="true" check-config-name="clarpse" local="false"> | ||
<file-match-pattern match-pattern="." include-pattern="true"/> | ||
</fileset> | ||
</fileset-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 19 additions & 1 deletion
20
clarpse/src/main/java/com/clarity/invocation/MethodInvocation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
package com.clarity.invocation; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class MethodInvocation extends ComponentInvocation { | ||
|
||
public class MethodInvocation extends ComponentInvocation implements Serializable { | ||
|
||
private static final long serialVersionUID = 6518046913196400190L; | ||
public final String type = "method"; | ||
public MethodInvocation(final String invocationComponentName, final int lineNum) { | ||
|
||
super(invocationComponentName, lineNum); | ||
} | ||
|
||
public MethodInvocation() { | ||
super(); | ||
} | ||
|
||
public MethodInvocation(String invokedComponent, List<Integer> lines) { | ||
super(invokedComponent, lines); | ||
} | ||
|
||
@Override | ||
public Object clone() { | ||
return new MethodInvocation(invokedComponent(), lines()); | ||
} | ||
} |
20 changes: 19 additions & 1 deletion
20
clarpse/src/main/java/com/clarity/invocation/ThrownException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,27 @@ | ||
package com.clarity.invocation; | ||
|
||
public class ThrownException extends ComponentInvocation { | ||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class ThrownException extends ComponentInvocation implements Serializable { | ||
|
||
private static final long serialVersionUID = 3346563314076095662L; | ||
public final String type = "exception"; | ||
public ThrownException(String invocationComponentName, int lineNum) { | ||
super(invocationComponentName, lineNum); | ||
} | ||
|
||
public ThrownException() { | ||
super(); | ||
} | ||
|
||
public ThrownException(String invokedComponent, List<Integer> lines) { | ||
super(invokedComponent, lines); | ||
} | ||
|
||
@Override | ||
public Object clone() { | ||
return new ThrownException(invokedComponent(), lines()); | ||
} | ||
|
||
} |
20 changes: 19 additions & 1 deletion
20
clarpse/src/main/java/com/clarity/invocation/TypeDeclaration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
package com.clarity.invocation; | ||
|
||
public class TypeDeclaration extends ComponentInvocation { | ||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class TypeDeclaration extends ComponentInvocation implements Serializable { | ||
|
||
private static final long serialVersionUID = 7304258760520469246L; | ||
public final String type = "declaration"; | ||
public TypeDeclaration(final String invocationComponentName, final int lineNum) { | ||
super(invocationComponentName, lineNum); | ||
} | ||
|
||
public TypeDeclaration() { | ||
super(); | ||
} | ||
|
||
public TypeDeclaration(String invokedComponent, List<Integer> lines) { | ||
super(invokedComponent, lines); | ||
} | ||
|
||
@Override | ||
public Object clone() { | ||
return new TypeDeclaration(invokedComponent(), lines()); | ||
} | ||
} |
20 changes: 19 additions & 1 deletion
20
clarpse/src/main/java/com/clarity/invocation/TypeExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
package com.clarity.invocation; | ||
|
||
public final class TypeExtension extends ComponentInvocation { | ||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public final class TypeExtension extends ComponentInvocation implements Serializable { | ||
|
||
private static final long serialVersionUID = 6641497827060470449L; | ||
public final String type = "extension"; | ||
public TypeExtension(final String invocationComponentName, final int lineNum) { | ||
super(invocationComponentName, lineNum); | ||
} | ||
|
||
public TypeExtension() { | ||
super(); | ||
} | ||
|
||
public TypeExtension(String invokedComponent, List<Integer> lines) { | ||
super(invokedComponent, lines); | ||
} | ||
|
||
@Override | ||
public Object clone() { | ||
return new TypeExtension(invokedComponent(), lines()); | ||
} | ||
} |
21 changes: 20 additions & 1 deletion
21
clarpse/src/main/java/com/clarity/invocation/TypeImplementation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
package com.clarity.invocation; | ||
|
||
public class TypeImplementation extends ComponentInvocation { | ||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class TypeImplementation extends ComponentInvocation implements Serializable { | ||
|
||
private static final long serialVersionUID = 7807962152246261233L; | ||
public final String type = "implementation"; | ||
|
||
public TypeImplementation(String invocationComponentName, int lineNum) { | ||
super(invocationComponentName, lineNum); | ||
} | ||
|
||
public TypeImplementation() { | ||
super(); | ||
} | ||
|
||
public TypeImplementation(String invokedComponent, List<Integer> lines) { | ||
super(invokedComponent, lines); | ||
} | ||
|
||
@Override | ||
public Object clone() { | ||
return new TypeImplementation(invokedComponent(), lines()); | ||
} | ||
|
||
} |
21 changes: 20 additions & 1 deletion
21
clarpse/src/main/java/com/clarity/invocation/TypeInstantiation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
package com.clarity.invocation; | ||
|
||
public class TypeInstantiation extends ComponentInvocation { | ||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class TypeInstantiation extends ComponentInvocation implements Serializable { | ||
|
||
private static final long serialVersionUID = 7253490170234016131L; | ||
public final String type = "instantiation"; | ||
|
||
public TypeInstantiation(String invocationComponentName, int lineNum) { | ||
super(invocationComponentName, lineNum); | ||
} | ||
|
||
public TypeInstantiation() { | ||
super(); | ||
} | ||
|
||
public TypeInstantiation(String invokedComponent, List<Integer> lines) { | ||
super(invokedComponent, lines); | ||
} | ||
|
||
@Override | ||
public Object clone() { | ||
return new TypeInstantiation(invokedComponent(), lines()); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
clarpse/src/main/java/com/clarity/invocation/TypeParameter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.clarity.invocation; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
public class TypeParameter extends ComponentInvocation implements Serializable { | ||
|
||
private static final long serialVersionUID = -6321838812633289752L; | ||
public final String type = "typeparameter"; | ||
|
||
public TypeParameter(String invokedClass, int lineNumber) { | ||
super(invokedClass, lineNumber); | ||
} | ||
|
||
public TypeParameter() { | ||
super(); | ||
} | ||
|
||
public TypeParameter(String invokedComponent, List<Integer> lines) { | ||
super(invokedComponent, lines); | ||
} | ||
|
||
@Override | ||
public Object clone() { | ||
return new TypeParameter(invokedComponent(), lines()); | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
clarpse/src/main/java/com/clarity/invocation/TypeReferenceInvocation.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.