Project

General

Profile

« Previous | Next » 

Revision c38734e6

Added by Andreas Müller over 8 years ago

Add some more BeanUtil test to other classes #5307

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/BotanicalNameTest.java
21 21
import org.junit.Before;
22 22
import org.junit.BeforeClass;
23 23
import org.junit.Test;
24
import org.springframework.beans.BeanUtils;
24 25

  
25 26
import eu.etaxonomy.cdm.model.agent.Team;
26 27
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
......
165 166
		botanicalName1.setAnamorphic(false);
166 167
		clone = (BotanicalName)botanicalName1.clone();
167 168
		Assert.assertEquals("Anamorphic should be equal", false, clone.isAnamorphic());
168

  
169 169
	}
170 170

  
171
    @Test
172
    public void beanTests(){
173
//      #5307 Test that BeanUtils does not fail
174
        BeanUtils.getPropertyDescriptors(BotanicalName.class);
175
        BeanUtils.getPropertyDescriptors(TaxonNameBase.class);
176
        BeanUtils.getPropertyDescriptors(NonViralName.class);
177
        BeanUtils.getPropertyDescriptors(ZoologicalName.class);
178
        BeanUtils.getPropertyDescriptors(ViralName.class);
179
        BeanUtils.getPropertyDescriptors(CultivarPlantName.class);
180
    }
171 181
}

Also available in: Unified diff