Hello,

Look at BuiltInTypeTest and Bookmark. Bookmark hosts all of our built-in types.
We usually don’t do unit tests in the strictest sense. We prefer to run the 
chain from top to bottom in what people call integration tests.

About 
org.hibernate.ogm.test.type.CustomDateType
org.hibernate.ogm.test.type.ExplodingType
org.hibernate.ogm.test.type.OverridingTypeDialect
org.hibernate.ogm.test.type.Poem

They are testing that a dialect can override types. It is indeed a test and not 
part of the core engine.

Emmanuel

> On 16 Dec 2014, at 13:22, Ajay Bhat <a.ajay.b...@gmail.com> wrote:
> 
> Hi Emmanuel,
> 
> I was working on supporting Short and Float datatypes for Hibernate OGM 
> (issue 401) and I noticed that there are no unit tests for TypeTranslatorImpl 
> [1]. Where should I look for it, if a test does exist? Shall I add a unit 
> test for that?
> 
> Also I noticed that some classes are present in the "test" package, rather 
> than "main".[2] Could you pls explain why this was done?
> [1] org/hibernate/ogm/type/impl/TypeTranslatorImpl.java
> [2]
> org.hibernate.ogm.test.type.CustomDateType
> org.hibernate.ogm.test.type.ExplodingType
> org.hibernate.ogm.test.type.OverridingTypeDialect
> org.hibernate.ogm.test.type.Poem
> 
> https://hibernate.atlassian.net/browse/OGM-401 
> <https://hibernate.atlassian.net/browse/OGM-401>
> 
> Thanks,
> Ajay

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to