Ignored testcase, which is not clear to me why it is ignored or what it is trying to test. Uncommenting everything, and it doesn't compile, so time to chuck it away.
Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/b49e3949 Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/b49e3949 Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/b49e3949 Branch: refs/heads/develop Commit: b49e3949be71af384f6bcf4d67c628e016421218 Parents: c2dafaf Author: Niclas Hedhman <[email protected]> Authored: Wed Jun 17 10:36:36 2015 +0800 Committer: Niclas Hedhman <[email protected]> Committed: Wed Jun 17 10:36:36 2015 +0800 ---------------------------------------------------------------------- .../common/UnitOfWorkCallbackEntityTest.java | 81 -------------------- 1 file changed, 81 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/b49e3949/core/runtime/src/test/java/org/qi4j/api/common/UnitOfWorkCallbackEntityTest.java ---------------------------------------------------------------------- diff --git a/core/runtime/src/test/java/org/qi4j/api/common/UnitOfWorkCallbackEntityTest.java b/core/runtime/src/test/java/org/qi4j/api/common/UnitOfWorkCallbackEntityTest.java deleted file mode 100644 index 8adb31f..0000000 --- a/core/runtime/src/test/java/org/qi4j/api/common/UnitOfWorkCallbackEntityTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2008, Rickard Ãberg. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package org.qi4j.api.common; - -import org.junit.Ignore; -import org.junit.Test; -import org.qi4j.api.entity.EntityComposite; -import org.qi4j.api.unitofwork.UnitOfWork; -import org.qi4j.api.unitofwork.UnitOfWorkCompletionException; -import org.qi4j.bootstrap.AssemblyException; -import org.qi4j.bootstrap.ModuleAssembly; -import org.qi4j.test.AbstractQi4jTest; -import org.qi4j.test.EntityTestAssembler; - -import static org.junit.Assert.fail; - -/** - * Test UnitOfWorkCallback and Validatable - */ -public class UnitOfWorkCallbackEntityTest - extends AbstractQi4jTest -{ - public void assemble( ModuleAssembly module ) - throws AssemblyException - { - module.entities( TestCase.class ); - new EntityTestAssembler().assemble( module ); - } - - @Test - @Ignore( "Validation is moved to sandbox, and UoW is under massive refactoring." ) - public void givenCompositeWithValidatableWhenUnitCompletesThenPerformValidation() - throws UnitOfWorkCompletionException - { - UnitOfWork uow = module.newUnitOfWork(); - TestCase test = uow.newEntity( TestCase.class ); - - try - { - uow.complete(); - fail( "Validation did not occur" ); - } - finally - { - uow.discard(); - } - } - - // @Concerns( TestValidatableConcern.class ) - - interface TestCase - extends EntityComposite //, ValidatableAbstractComposite - { - } -/* - public static abstract class TestValidatableConcern extends AbstractValidatableConcern - { - @Override protected void isValid( Validator validator ) - { - validator.error( true, "Validation error" ); - } - - @Override protected String getResourceBundle() - { - return null; - } - } -*/ -}
