Commit 339b14d8 authored by Andrea Aime's avatar Andrea Aime
Browse files

[GEOS-7374] Layer group edit page failing after adding GeoFence jar libraries

parent 03e32e1d
/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
/* (c) 2014 - 2016 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
......@@ -178,7 +178,6 @@ public class DecoratingLayerGroupInfo extends AbstractDecorator<LayerGroupInfo>
@Override
public PublishedType getType() {
// TODO Auto-generated method stub
return null;
return delegate.getType();
}
}
/* (c) 2016 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/package org.geoserver.security.decorators;
import static org.easymock.EasyMock.createNiceMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.*;
import java.io.IOException;
import org.geoserver.catalog.LayerGroupInfo;
import org.geoserver.catalog.PublishedType;
import org.junit.Test;
public class DecoratingLayerGroupInfoTest {
@Test
public void testDelegateGetType() throws IOException {
// build up the mock
LayerGroupInfo lg = createNiceMock(LayerGroupInfo.class);
expect(lg.getType()).andReturn(PublishedType.GROUP);
replay(lg);
DecoratingLayerGroupInfo decorator = new DecoratingLayerGroupInfo(lg);
assertEquals(PublishedType.GROUP, decorator.getType());
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment