HHH-11944 Add test classes for delegating classes

This commit is contained in:
Guillaume Smet 2017-08-28 15:16:28 +02:00
parent 13bb0a3f22
commit 8de187594d
8 changed files with 212 additions and 0 deletions

View File

@ -0,0 +1,23 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.boot.spi.delegation;
import org.hibernate.boot.spi.AbstractDelegatingMetadata;
import org.hibernate.boot.spi.MetadataImplementor;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingMetadata extends AbstractDelegatingMetadata {
public TestDelegatingMetadata(MetadataImplementor delegate) {
super( delegate );
}
}

View File

@ -0,0 +1,28 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.boot.spi.delegation;
import org.hibernate.boot.spi.AbstractDelegatingMetadataBuilderImplementor;
import org.hibernate.boot.spi.MetadataBuilderImplementor;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingMetadataBuilderImplementor extends AbstractDelegatingMetadataBuilderImplementor<TestDelegatingMetadataBuilderImplementor> {
public TestDelegatingMetadataBuilderImplementor(MetadataBuilderImplementor delegate) {
super( delegate );
}
@Override
protected TestDelegatingMetadataBuilderImplementor getThis() {
return this;
}
}

View File

@ -0,0 +1,23 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.boot.spi.delegation;
import org.hibernate.boot.spi.AbstractDelegatingMetadataBuildingOptions;
import org.hibernate.boot.spi.MetadataBuildingOptions;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingMetadataBuildingOptions extends AbstractDelegatingMetadataBuildingOptions {
public TestDelegatingMetadataBuildingOptions(MetadataBuildingOptions delegate) {
super( delegate );
}
}

View File

@ -0,0 +1,28 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.boot.spi.delegation;
import org.hibernate.boot.SessionFactoryBuilder;
import org.hibernate.boot.spi.AbstractDelegatingSessionFactoryBuilder;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingSessionFactoryBuilder extends AbstractDelegatingSessionFactoryBuilder<TestDelegatingSessionFactoryBuilder> {
public TestDelegatingSessionFactoryBuilder(SessionFactoryBuilder delegate) {
super( delegate );
}
@Override
protected TestDelegatingSessionFactoryBuilder getThis() {
return this;
}
}

View File

@ -0,0 +1,23 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.boot.spi.delegation;
import org.hibernate.boot.spi.AbstractDelegatingSessionFactoryOptions;
import org.hibernate.boot.spi.SessionFactoryOptions;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingSessionFactoryOptions extends AbstractDelegatingSessionFactoryOptions {
public TestDelegatingSessionFactoryOptions(SessionFactoryOptions delegate) {
super( delegate );
}
}

View File

@ -0,0 +1,29 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.engine.spi.delegation;
import org.hibernate.SessionBuilder;
import org.hibernate.engine.spi.AbstractDelegatingSessionBuilder;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingSessionBuilder extends AbstractDelegatingSessionBuilder<TestDelegatingSessionBuilder> {
@SuppressWarnings("rawtypes")
public TestDelegatingSessionBuilder(SessionBuilder delegate) {
super( delegate );
}
@Override
protected TestDelegatingSessionBuilder getThis() {
return this;
}
}

View File

@ -0,0 +1,28 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.engine.spi.delegation;
import org.hibernate.engine.spi.AbstractDelegatingSessionBuilderImplementor;
import org.hibernate.engine.spi.SessionBuilderImplementor;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingSessionBuilderImplementor extends AbstractDelegatingSessionBuilderImplementor<TestDelegatingSessionBuilderImplementor> {
public TestDelegatingSessionBuilderImplementor(SessionBuilderImplementor<TestDelegatingSessionBuilderImplementor> delegate) {
super( delegate );
}
@Override
protected TestDelegatingSessionBuilderImplementor getThis() {
return this;
}
}

View File

@ -0,0 +1,30 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.engine.spi.delegation;
import org.hibernate.SharedSessionBuilder;
import org.hibernate.engine.spi.AbstractDelegatingSharedSessionBuilder;
/**
* If this class does not compile anymore due to unimplemented methods, you should probably add the corresponding
* methods to the parent class.
*
* @author Guillaume Smet
*/
public class TestDelegatingSharedSessionBuilder extends AbstractDelegatingSharedSessionBuilder<TestDelegatingSharedSessionBuilder> {
@SuppressWarnings("rawtypes")
public TestDelegatingSharedSessionBuilder(SharedSessionBuilder delegate) {
super( delegate );
}
@Override
protected TestDelegatingSharedSessionBuilder getThis() {
return this;
}
}