diff options
Diffstat (limited to 'src/test/java/org/eclipse/mdm/api/base/EntityFactoryImpl.java')
-rwxr-xr-x | src/test/java/org/eclipse/mdm/api/base/EntityFactoryImpl.java | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/src/test/java/org/eclipse/mdm/api/base/EntityFactoryImpl.java b/src/test/java/org/eclipse/mdm/api/base/EntityFactoryImpl.java index 7c1ca1f..688731a 100755 --- a/src/test/java/org/eclipse/mdm/api/base/EntityFactoryImpl.java +++ b/src/test/java/org/eclipse/mdm/api/base/EntityFactoryImpl.java @@ -1,62 +1,62 @@ -/********************************************************************************
- * Copyright (c) 2015-2018 Contributors to the Eclipse Foundation
- *
- * See the NOTICE file(s) distributed with this work for additional
- * information regarding copyright ownership.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v. 2.0 which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- ********************************************************************************/
-
-
-package org.eclipse.mdm.api.base;
-
-import java.util.Optional;
-
-import org.eclipse.mdm.api.base.adapter.Core;
-import org.eclipse.mdm.api.base.model.BaseEntityFactory;
-import org.eclipse.mdm.api.base.model.ContextType;
-import org.eclipse.mdm.api.base.model.Entity;
-import org.eclipse.mdm.api.base.model.User;
-
-/**
- *
- * Very basic implementation of BaseEntityFactory for testing purposes. We
- * deliver a core containing data on initialization to simulate other data
- * sources.
- *
- * @author Florian Schmitt
- *
- */
-public class EntityFactoryImpl extends BaseEntityFactory {
-
- private Core core;
-
- public EntityFactoryImpl(Core core) {
- this.core = core;
- }
-
- @Override
- protected Optional<User> getLoggedInUser() {
- return Optional.ofNullable(null);
- }
-
- @Override
- protected <T extends Entity> Core createCore(Class<T> entityClass) {
- return core;
- }
-
- @Override
- protected <T extends Entity> Core createCore(Class<T> entityClass, ContextType contextType) {
- return core;
- }
-
- @Override
- protected <T extends Entity> Core createCore(String name, Class<T> entityClass) {
- return core;
- }
+/******************************************************************************** + * Copyright (c) 2015-2018 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0 which is available at + * http://www.eclipse.org/legal/epl-2.0. + * + * SPDX-License-Identifier: EPL-2.0 + * + ********************************************************************************/ + + +package org.eclipse.mdm.api.base; + +import java.util.Optional; + +import org.eclipse.mdm.api.base.adapter.Core; +import org.eclipse.mdm.api.base.model.BaseEntityFactory; +import org.eclipse.mdm.api.base.model.ContextType; +import org.eclipse.mdm.api.base.model.Entity; +import org.eclipse.mdm.api.base.model.User; + +/** + * + * Very basic implementation of BaseEntityFactory for testing purposes. We + * deliver a core containing data on initialization to simulate other data + * sources. + * + * @author Florian Schmitt + * + */ +public class EntityFactoryImpl extends BaseEntityFactory { + + private Core core; + + public EntityFactoryImpl(Core core) { + this.core = core; + } + + @Override + protected Optional<User> getLoggedInUser() { + return Optional.ofNullable(null); + } + + @Override + protected <T extends Entity> Core createCore(Class<T> entityClass) { + return core; + } + + @Override + protected <T extends Entity> Core createCore(Class<T> entityClass, ContextType contextType) { + return core; + } + + @Override + protected <T extends Entity> Core createCore(String name, Class<T> entityClass) { + return core; + } }
\ No newline at end of file |