content: /*
   *  Licensed to the Apache Software Foundation (ASF) under one
   *  or more contributor license agreements.  See the NOTICE file
   *  distributed with this work for additional information
   *  regarding copyright ownership.  The ASF licenses this file
   *  to you 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.apache.causeway.testing.archtestsupport.applib.entity.jdo;
  
  import com.tngtech.archunit.core.importer.ImportOption;
  import com.tngtech.archunit.junit.AnalyzeClasses;
  import com.tngtech.archunit.junit.ArchTest;
  import com.tngtech.archunit.lang.ArchRule;
  
  import org.apache.causeway.testing.archtestsupport.applib.entity.jdo.dom.JdoDomModule;
  
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_injected_field_of_jdo_PersistenceCapable_must_be_annotated_with_NotPersistent;
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_jdo_PersistenceCapable_must_be_annotated_as_Uniques_or_Unique;
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_jdo_PersistenceCapable_must_be_annotated_as_XmlJavaAdapter_PersistentEntityAdapter;
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_jdo_PersistenceCapable_must_be_annotated_with_DomainObject_nature_of_ENTITY;
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_jdo_PersistenceCapable_must_be_annotated_with_Version;
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_jdo_PersistenceCapable_must_have_schema;
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_jdo_PersistenceCapable_must_implement_Comparable;
  import static org.apache.causeway.testing.archtestsupport.applib.classrules.ArchitectureJdoRules.every_jdo_PersistenceCapable_with_DATASTORE_identityType_must_be_annotated_as_DataStoreIdentity;
  
  @AnalyzeClasses(
      packagesOf = {
        JdoDomModule.class
      },
      importOptions = {ImportOption.OnlyIncludeTests.class})
  public class JdoEntityArchTests {
  
    @ArchTest
    public static ArchRule every_jdo_PersistenceCapable_must_implement_Comparable =
        every_jdo_PersistenceCapable_must_implement_Comparable();
  
    @ArchTest
    public static ArchRule every_jdo_PersistenceCapable_must_be_annotated_with_DomainObject_nature_of_ENTITY =
        every_jdo_PersistenceCapable_must_be_annotated_with_DomainObject_nature_of_ENTITY();
  
    @ArchTest
    public static ArchRule every_jdo_PersistenceCapable_must_be_annotated_as_XmlJavaAdapter_PersistentEntityAdapter =
        every_jdo_PersistenceCapable_must_be_annotated_as_XmlJavaAdapter_PersistentEntityAdapter();
  
    @ArchTest
    public static ArchRule every_jdo_PersistenceCapable_must_be_annotated_as_Uniques_or_Unique =
        every_jdo_PersistenceCapable_must_be_annotated_as_Uniques_or_Unique();
  
    @ArchTest
    public static ArchRule every_jdo_PersistenceCapable_must_have_schema =
        every_jdo_PersistenceCapable_must_have_schema();
  
    @ArchTest
    public static ArchRule every_jdo_PersistenceCapable_must_be_annotated_with_Version =
        every_jdo_PersistenceCapable_must_be_annotated_with_Version();
  
    @ArchTest
    public static ArchRule every_jdo_PersistenceCapable_with_DATASTORE_identityType_must_be_annotated_as_DataStoreIdentity =
        every_jdo_PersistenceCapable_with_DATASTORE_identityType_must_be_annotated_as_DataStoreIdentity();
  
    @ArchTest
    public static ArchRule every_injected_field_of_jdo_PersistenceCapable_must_be_annotated_with_NotPersistent =
        every_injected_field_of_jdo_PersistenceCapable_must_be_annotated_with_NotPersistent();
  
  }
  