Project

General

Profile

Download (1.29 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.persistence.validation;
10

    
11
import eu.etaxonomy.cdm.model.common.CdmBase;
12
import eu.etaxonomy.cdm.validation.Level2;
13

    
14
/**
15
 * Mock class that we know will take long to validate.
16
 */
17
@SuppressWarnings("serial")
18
public class EmployeeWithLongRunningValidation extends CdmBase {
19

    
20
	@LongRunningCheckCase(value = CaseMode.UPPER, groups = { Level2.class })
21
	private String givenName;
22

    
23

    
24
	public String getGivenName(){
25
		return givenName;
26
	}
27

    
28

    
29
	public void setGivenName(String givenName){
30
		this.givenName = givenName;
31
	}
32

    
33

    
34
	/**
35
	 * Will always return false. This is because we use this class to stress-test the
36
	 * ValidationExecutor and we want to be sure each submitted task will be treated as a new
37
	 * task, otherwise the task would not enter the queue in the first place. The easiest way
38
	 * to accomplish this is to just let the equals() method simply return false. See
39
	 * {@link EntityValidationTaskBase#equals(Object)}.
40
	 */
41
	@Override
42
	public boolean equals(Object obj){
43
		return false;
44
	}
45

    
46
}
(7-7/12)