|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IdMustBeUniqueException.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | package com.agical.rmock.core.exception; | |
| 2 | ||
| 3 | /** | |
| 4 | * Thrown when a proxy is created whith an id that is already defined in | |
| 5 | * the current testcase. | |
| 6 | * | |
| 7 | * (c) 2005 Agical AB | |
| 8 | * @author joakim.ohlrogge | |
| 9 | */ | |
| 10 | public class IdMustBeUniqueException extends RuntimeException { | |
| 11 | private static final long serialVersionUID = 1L; | |
| 12 | ||
| 13 | 3 | public IdMustBeUniqueException(String id) { |
| 14 | 3 | this("mock", id); |
| 15 | } | |
| 16 | ||
| 17 | 4 | public IdMustBeUniqueException(String objectType, String id) { |
| 18 | 4 | super("A "+ objectType +"with the id <"+id+"> has already been defined. Choose a different name"); |
| 19 | } | |
| 20 | } |
|
||||||||||