EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.stoex.analyser.exceptions]

COVERAGE SUMMARY FOR SOURCE FILE [ExpectedTypeMismatchIssue.java]

nameclass, %method, %block, %line, %
ExpectedTypeMismatchIssue.java0%   (0/1)0%   (0/3)0%   (0/39)0%   (0/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ExpectedTypeMismatchIssue0%   (0/1)0%   (0/3)0%   (0/39)0%   (0/12)
ExpectedTypeMismatchIssue (String, TypeEnum): void 0%   (0/1)0%   (0/9)0%   (0/4)
ExpectedTypeMismatchIssue (TypeEnum, TypeEnum): void 0%   (0/1)0%   (0/10)0%   (0/4)
getMessage (): String 0%   (0/1)0%   (0/20)0%   (0/4)

1package de.uka.ipd.sdq.stoex.analyser.exceptions;
2 
3import de.uka.ipd.sdq.errorhandling.IIssue;
4import de.uka.ipd.sdq.stoex.analyser.visitors.TypeEnum;
5 
6public class ExpectedTypeMismatchIssue implements IIssue {
7 
8        private String expectedType;
9        private TypeEnum foundType;
10 
11        public ExpectedTypeMismatchIssue(TypeEnum expectedType, TypeEnum type) {
12                this.expectedType = expectedType.name();
13                this.foundType = type;
14        }
15 
16        public ExpectedTypeMismatchIssue(String expectedType, TypeEnum type) {
17                this.expectedType = expectedType;
18                this.foundType = type;
19        }
20 
21        public String getMessage() {
22                return 
23                        "Expected Type and Actual Type mismatch.\nInfered Type: " +
24                        ( foundType == null ? "unknown" : foundType.name() ) +
25                        ", Expected Type: "+expectedType;
26        }
27 
28}

[all classes][de.uka.ipd.sdq.stoex.analyser.exceptions]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov