Project

General

Profile

Revision 81100638

ID81100638605a8dc78928f18a6a21243c2c8a62b6
Parent 59cb77b4
Child f3b04802

Added by Andreas Müller about 7 years ago

replace asserts

View differences:

cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/hibernate/replace/ReferringObjectMetadataFactoryTest.java
13 13
import java.util.UUID;
14 14

  
15 15
import org.apache.log4j.Logger;
16
import org.junit.Assert;
16 17
import org.junit.Before;
17 18
import org.junit.Test;
18 19
import org.unitils.dbunit.annotation.DataSet;
......
28 29
/**
29 30
 * @author ben.clark
30 31
 * @created 22.12.2009
31
 * @version 1.0
32 32
 */
33 33
public class ReferringObjectMetadataFactoryTest extends CdmTransactionalIntegrationTest {
34 34
	@SuppressWarnings("unused")
......
77 77
		Institution x = (Institution)agentDao.findByUuid(institution1);
78 78
		Institution y = (Institution)agentDao.findByUuid(institution2);
79 79

  
80
		assert x != null;
81
		assert y != null;
80
		Assert.assertNotNull(x);
81
		Assert.assertNotNull(y);
82 82

  
83 83
		agentDao.replace(x,y);
84 84
	}
......
90 90
		Person x = (Person)agentDao.findByUuid(person1);
91 91
		Person y = (Person)agentDao.findByUuid(person2);
92 92

  
93
		assert x != null;
94
		assert y != null;
93
		Assert.assertNotNull(x);
94
		Assert.assertNotNull(y);
95 95

  
96 96
		agentDao.replace(x,y);
97 97
		this.setComplete();
......
106 106
		Person x = (Person)agentDao.findByUuid(person3);
107 107
		Person y = (Person)agentDao.findByUuid(person2);
108 108

  
109
		assert x != null;
110
		assert y != null;
109
		Assert.assertNotNull(x);
110
		Assert.assertNotNull(y);
111 111

  
112 112
		agentDao.replace(x,y);
113 113
	}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)