/*
 * Copyright 2014, Red Hat, Inc. and individual contributors
 * as indicated by the @author tags. See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package org.zanata.rest.service;

import java.util.Set;
import javax.ws.rs.core.Application;

import com.google.common.collect.ImmutableSet;

/**
 * @author Patrick Huang <a
 *         href="mailto:pahuang@redhat.com">pahuang@redhat.com</a>
 */
public class MockResourcesApplication extends Application {
    private static final ImmutableSet<Class<?>> services = ImmutableSet
            .of(
                    MockVersionResource.class,
                    MockSourceDocResource.class,
                    MockTranslatedDocResource.class,
                    MockStatisticsResource.class,
                    MockFileResource.class,
                    MockProjectsResource.class,
                    MockProjectIterationResource.class,
                    MockProjectResource.class,
                    MockGlossaryResource.class,
                    MockCopyTransResource.class,
                    MockAccountResource.class,
                    MockAsynchronousProcessResource.class
            );

    @Override
    public Set<Class<?>> getClasses() {
        return services;
    }
}


@@ -1277,16 +1277,17 @@
 ation %7B%0A
+%0A
     priv
@@ -1338,45 +1338,118 @@
 ices
- = ImmutableSet%0A            .of(%0A    
+;%0A%0A    static %7B%0A        ImmutableSet.Builder%3CClass%3C?%3E%3E builder = ImmutableSet.builder();%0A        builder.add(%0A
     
@@ -1499,28 +1499,24 @@
             
-    
 MockSourceDo
@@ -1544,28 +1544,24 @@
             
-  
-  
 MockTranslat
@@ -1573,36 +1573,32 @@
 Resource.class,%0A
-    
                 
@@ -1639,28 +1639,24 @@
             
-    
 MockFileReso
@@ -1675,36 +1675,32 @@
                 
- 
-   
 MockProjectsReso
@@ -1703,36 +1703,32 @@
 Resource.class,%0A
-    
                 
@@ -1755,36 +1755,32 @@
 Resource.class,%0A
-    
                 
@@ -1818,28 +1818,24 @@
             
-    
 MockGlossary
@@ -1842,36 +1842,32 @@
 Resource.class,%0A
-    
                 
@@ -1907,28 +1907,24 @@
             
-   
- 
 MockAccountR
@@ -1930,36 +1930,32 @@
 Resource.class,%0A
-    
                 
@@ -2004,14 +2004,52 @@
     
+);%0A
     
-);
+    services = builder.build();%0A    %7D
 %0A%0A  

Fix compilation error