/*
 * 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.test.mock;

import org.qi4j.bootstrap.Assembler;
import org.qi4j.bootstrap.AssemblyException;
import org.qi4j.bootstrap.ModuleAssembly;
import org.qi4j.composite.Mixins;
import org.qi4j.service.ServiceComposite;
import org.qi4j.test.AbstractQi4jTest;

/**
 * TODO
 */
public class MockAssemblerTest
    extends AbstractQi4jTest
{
    public void assemble( ModuleAssembly module ) throws AssemblyException
    {
        new MockAssembler( new Assembler()
        {
            public void assemble( ModuleAssembly module ) throws AssemblyException
            {
                module.addServices( MyService.class );
            }
        } ).mock(); // TODO
    }

    @Mixins( MyService.MyServiceMixin.class )
    public interface MyService
        extends ServiceComposite
    {
        public String say();

        public abstract class MyServiceMixin
            implements MyService
        {
            public String say()
            {
                return "Hello World";
            }
        }
    }
}

@@ -880,24 +880,120 @@
 st;%0A
-%0A/**%0A * TODO%0A */
+import org.junit.Test;%0Aimport org.junit.Ignore;%0A%0A/**%0A * TODO%0A */%0A@Ignore( %22The Tests has not been written yet.%22)
 %0Apub

Disable it again.