@@ -0,0 +1,1160 @@
+/**%0A * Copyright (c) 2015 Bosch Software Innovations GmbH and others.%0A *%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A */%0Apackage org.eclipse.hawkbit.repository.test.matcher;%0A%0Aimport org.eclipse.hawkbit.repository.model.BaseEntity;%0Aimport org.hamcrest.Factory;%0Aimport org.hamcrest.FeatureMatcher;%0Aimport org.hamcrest.Matcher;%0Aimport org.hamcrest.Matchers;%0A%0A/**%0A * Matcher for %7B@link BaseEntity%7D.%0A */%0Apublic class BaseEntityMatcher %7B%0A%0A    private BaseEntityMatcher() %7B%0A    %7D%0A%0A    @Factory%0A    public static Matcher%3CBaseEntity%3E hasId(final Long id) %7B%0A        return new HasIdMatcher(Matchers.equalTo(id));%0A    %7D%0A%0A    private static class HasIdMatcher extends FeatureMatcher%3CBaseEntity, Long%3E %7B%0A%0A        public HasIdMatcher(final Matcher%3CLong%3E subMatcher) %7B%0A            super(subMatcher, %22getId()%22, %22id%22);%0A        %7D%0A%0A        @Override%0A        protected Long featureValueOf(final BaseEntity baseEntity) %7B%0A            return baseEntity.getId();%0A        %7D%0A    %7D%0A%0A%7D%0A

Add Base Entity Matcher