package org.mongodb.morphia.issue646;
import org.junit.Assert;
import org.junit.Test;
import org.mongodb.morphia.TestBase;
public class SubClassConvertersTest extends TestBase {
@Test
public final void convertersFoundFromSubClass() {
getMorphia().map(SubClass.class);
Assert.assertTrue("Converters annotated in super class are not present.",
getMorphia().getMapper().getConverters().isRegistered(SquareConverter.class));
Assert.assertTrue("Converters annotated in sub class are not present.",
getMorphia().getMapper().getConverters().isRegistered(TriangleConverter.class));
}
}