From 92ac7e1ddf7ac2e7fafdab4cde5b653b54e17cd2 Mon Sep 17 00:00:00 2001 From: longwa Date: Wed, 8 Jan 2025 21:16:55 +0000 Subject: [PATCH] Deploying to gh-pages - 21:16:55 --- .../testing/DependencyDataTest.html | 2 +- 6.0.0-M1/ghpages.html | 4 +- 6.0.0-M1/index.html | 35 +- 6.0.x/gapi/allclasses-frame.html | 87 + 6.0.x/gapi/deprecated-list.html | 106 + .../grails/buildtestdata/BuildDataTest.html | 284 ++ .../grails/buildtestdata/BuildDomainTest.html | 359 +++ .../buildtestdata/BuildHibernateTest.html | 283 ++ 6.0.x/gapi/grails/buildtestdata/TestData.html | 473 ++++ .../grails/buildtestdata/TestDataBuilder.html | 347 +++ .../buildtestdata/TestDataConfiguration.html | 476 ++++ .../TestDataConfigurationHolder.html | 480 ++++ .../buildtestdata/UnitTestDataBuilder.html | 225 ++ .../buildtestdata/builders/DataBuilder.html | 257 ++ .../builders/DataBuilderContext.html | 423 +++ .../builders/DataBuilderFactory.html | 252 ++ .../PersistentEntityDataBuilder.Factory.html | 318 +++ .../builders/PersistentEntityDataBuilder.html | 546 ++++ .../builders/PogoDataBuilder.Factory.html | 318 +++ .../builders/PogoDataBuilder.html | 436 ++++ .../ValidateableDataBuilder.Factory.html | 318 +++ .../builders/ValidateableDataBuilder.html | 563 ++++ .../buildtestdata/builders/package-frame.html | 66 + .../builders/package-summary.html | 228 ++ .../handler/AbstractHandler.html | 428 +++ .../handler/AssociationMinSizeHandler.html | 359 +++ .../handler/BlankConstraintHandler.html | 318 +++ .../handler/ConstraintHandler.html | 239 ++ .../handler/ConstraintHandlerException.html | 259 ++ .../handler/CreditCardConstraintHandler.html | 318 +++ .../handler/EmailConstraintHandler.html | 318 +++ .../handler/ExampleConstraintHandler.html | 333 +++ .../handler/InListConstraintHandler.html | 318 +++ .../handler/MatchesConstraintHandler.html | 318 +++ .../handler/MaxConstraintHandler.html | 318 +++ .../handler/MaxSizeConstraintHandler.html | 332 +++ .../handler/MinConstraintHandler.html | 318 +++ .../handler/MinSizeConstraintHandler.html | 332 +++ .../handler/NullableConstraintHandler.html | 347 +++ ...istentEntityNullableConstraintHandler.html | 386 +++ .../handler/RangeConstraintHandler.html | 318 +++ .../handler/SizeConstraintHandler.html | 382 +++ .../handler/UniqueConstraintHandler.html | 318 +++ .../handler/UrlConstraintHandler.html | 318 +++ .../handler/ValidatorConstraintHandler.html | 318 +++ .../buildtestdata/handler/package-frame.html | 74 + .../handler/package-summary.html | 340 +++ .../grails/buildtestdata/mixin/Build.html | 263 ++ .../buildtestdata/mixin/package-frame.html | 58 + .../buildtestdata/mixin/package-summary.html | 144 + .../grails/buildtestdata/package-frame.html | 66 + .../grails/buildtestdata/package-summary.html | 222 ++ .../propsresolver/ClosurePropsResolver.html | 343 +++ ...opsResolver.EmptyInitialPropsResolver.html | 303 +++ .../propsresolver/InitialPropsResolver.html | 261 ++ .../propsresolver/MapPropsResolver.html | 343 +++ .../propsresolver/package-frame.html | 66 + .../propsresolver/package-summary.html | 186 ++ .../testing/DependencyDataTest.html | 292 +++ .../buildtestdata/testing/package-frame.html | 58 + .../testing/package-summary.html | 144 + .../grails/buildtestdata/utils/Basics.html | 356 +++ .../buildtestdata/utils/DomainUtil.html | 340 +++ .../buildtestdata/utils/IsoDateUtil.html | 454 ++++ .../buildtestdata/utils/MetaHelper.html | 297 +++ .../buildtestdata/utils/package-frame.html | 58 + .../buildtestdata/utils/package-summary.html | 169 ++ 6.0.x/gapi/groovy.ico | Bin 0 -> 9662 bytes 6.0.x/gapi/help-doc.html | 196 ++ 6.0.x/gapi/index-all.html | 897 +++++++ 6.0.x/gapi/index.html | 90 + 6.0.x/gapi/inherit.gif | Bin 0 -> 57 bytes 6.0.x/gapi/overview-frame.html | 63 + 6.0.x/gapi/overview-summary.html | 166 ++ 6.0.x/gapi/package-list | 7 + 6.0.x/gapi/stylesheet.css | 2306 +++++++++++++++++ 6.0.x/ghpages.html | 89 + 6.0.x/index.html | 2017 ++++++++++++++ 78 files changed, 24432 insertions(+), 17 deletions(-) create mode 100644 6.0.x/gapi/allclasses-frame.html create mode 100644 6.0.x/gapi/deprecated-list.html create mode 100644 6.0.x/gapi/grails/buildtestdata/BuildDataTest.html create mode 100644 6.0.x/gapi/grails/buildtestdata/BuildDomainTest.html create mode 100644 6.0.x/gapi/grails/buildtestdata/BuildHibernateTest.html create mode 100644 6.0.x/gapi/grails/buildtestdata/TestData.html create mode 100644 6.0.x/gapi/grails/buildtestdata/TestDataBuilder.html create mode 100644 6.0.x/gapi/grails/buildtestdata/TestDataConfiguration.html create mode 100644 6.0.x/gapi/grails/buildtestdata/TestDataConfigurationHolder.html create mode 100644 6.0.x/gapi/grails/buildtestdata/UnitTestDataBuilder.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/DataBuilder.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/DataBuilderContext.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/DataBuilderFactory.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.Factory.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.Factory.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.Factory.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/package-frame.html create mode 100644 6.0.x/gapi/grails/buildtestdata/builders/package-summary.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/AbstractHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/AssociationMinSizeHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/BlankConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandlerException.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/CreditCardConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/EmailConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/ExampleConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/InListConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/MatchesConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/MaxConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/MaxSizeConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/MinConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/MinSizeConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/NullableConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/PersistentEntityNullableConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/RangeConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/SizeConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/UniqueConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/UrlConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/ValidatorConstraintHandler.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/package-frame.html create mode 100644 6.0.x/gapi/grails/buildtestdata/handler/package-summary.html create mode 100644 6.0.x/gapi/grails/buildtestdata/mixin/Build.html create mode 100644 6.0.x/gapi/grails/buildtestdata/mixin/package-frame.html create mode 100644 6.0.x/gapi/grails/buildtestdata/mixin/package-summary.html create mode 100644 6.0.x/gapi/grails/buildtestdata/package-frame.html create mode 100644 6.0.x/gapi/grails/buildtestdata/package-summary.html create mode 100644 6.0.x/gapi/grails/buildtestdata/propsresolver/ClosurePropsResolver.html create mode 100644 6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.EmptyInitialPropsResolver.html create mode 100644 6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.html create mode 100644 6.0.x/gapi/grails/buildtestdata/propsresolver/MapPropsResolver.html create mode 100644 6.0.x/gapi/grails/buildtestdata/propsresolver/package-frame.html create mode 100644 6.0.x/gapi/grails/buildtestdata/propsresolver/package-summary.html create mode 100644 6.0.x/gapi/grails/buildtestdata/testing/DependencyDataTest.html create mode 100644 6.0.x/gapi/grails/buildtestdata/testing/package-frame.html create mode 100644 6.0.x/gapi/grails/buildtestdata/testing/package-summary.html create mode 100644 6.0.x/gapi/grails/buildtestdata/utils/Basics.html create mode 100644 6.0.x/gapi/grails/buildtestdata/utils/DomainUtil.html create mode 100644 6.0.x/gapi/grails/buildtestdata/utils/IsoDateUtil.html create mode 100644 6.0.x/gapi/grails/buildtestdata/utils/MetaHelper.html create mode 100644 6.0.x/gapi/grails/buildtestdata/utils/package-frame.html create mode 100644 6.0.x/gapi/grails/buildtestdata/utils/package-summary.html create mode 100644 6.0.x/gapi/groovy.ico create mode 100644 6.0.x/gapi/help-doc.html create mode 100644 6.0.x/gapi/index-all.html create mode 100644 6.0.x/gapi/index.html create mode 100644 6.0.x/gapi/inherit.gif create mode 100644 6.0.x/gapi/overview-frame.html create mode 100644 6.0.x/gapi/overview-summary.html create mode 100644 6.0.x/gapi/package-list create mode 100644 6.0.x/gapi/stylesheet.css create mode 100644 6.0.x/ghpages.html create mode 100644 6.0.x/index.html diff --git a/6.0.0-M1/gapi/grails/buildtestdata/testing/DependencyDataTest.html b/6.0.0-M1/gapi/grails/buildtestdata/testing/DependencyDataTest.html index d9697b5..717abc0 100644 --- a/6.0.0-M1/gapi/grails/buildtestdata/testing/DependencyDataTest.html +++ b/6.0.0-M1/gapi/grails/buildtestdata/testing/DependencyDataTest.html @@ -181,7 +181,7 @@

Inherited Methods Summary

interface grails.testing.gorm.DataTest - grails.testing.gorm.DataTest#getDomainClassesToMock(), grails.testing.gorm.DataTest#getFailOnError(), grails.testing.gorm.DataTest#mockDomain(java.lang.Class), grails.testing.gorm.DataTest#mockDomain(java.lang.Class, java.util.List), grails.testing.gorm.DataTest#mockDomains([Ljava.lang.Class;), grails.testing.gorm.DataTest#mockDataService(java.lang.Class), grails.testing.gorm.DataTest#getDataStore(), grails.testing.gorm.DataTest#getDatastore(), grails.testing.gorm.DataTest#getTransactionManager(), grails.testing.gorm.DataTest#getDomainsHaveBeenMocked(), grails.testing.gorm.DataTest#isDomainsHaveBeenMocked(), grails.testing.gorm.DataTest#setDomainsHaveBeenMocked(boolean), grails.testing.gorm.DataTest#getCurrentSession(), grails.testing.gorm.DataTest#setCurrentSession(org.grails.datastore.mapping.core.Session), grails.testing.gorm.DataTest#getConfig(), grails.testing.gorm.DataTest#getOptionalServletContext(), grails.testing.gorm.DataTest#getMessageSource(), grails.testing.gorm.DataTest#defineBeans(groovy.lang.Closure), grails.testing.gorm.DataTest#defineBeans(java.lang.Object), grails.testing.gorm.DataTest#doWithSpring(), grails.testing.gorm.DataTest#doWithConfig(), grails.testing.gorm.DataTest#getIncludePlugins(), grails.testing.gorm.DataTest#loadExternalBeans(), grails.testing.gorm.DataTest#cleanupGrailsApplication(), grails.testing.gorm.DataTest#getLocalOverride(), grails.testing.gorm.DataTest#getApplicationContext(), grails.testing.gorm.DataTest#getGrailsApplication() + grails.testing.gorm.DataTest#getDomainClassesToMock(), grails.testing.gorm.DataTest#getFailOnError(), grails.testing.gorm.DataTest#mockDomain(java.lang.Class), grails.testing.gorm.DataTest#mockDomain(java.lang.Class, java.util.List), grails.testing.gorm.DataTest#mockDomains([Ljava.lang.Class;), grails.testing.gorm.DataTest#mockDataService(java.lang.Class), grails.testing.gorm.DataTest#getDataStore(), grails.testing.gorm.DataTest#getDatastore(), grails.testing.gorm.DataTest#getTransactionManager(), grails.testing.gorm.DataTest#getDomainsHaveBeenMocked(), grails.testing.gorm.DataTest#isDomainsHaveBeenMocked(), grails.testing.gorm.DataTest#setDomainsHaveBeenMocked(boolean), grails.testing.gorm.DataTest#getCurrentSession(), grails.testing.gorm.DataTest#setCurrentSession(org.grails.datastore.mapping.core.Session), grails.testing.gorm.DataTest#getConfig(), grails.testing.gorm.DataTest#getApplicationContext(), grails.testing.gorm.DataTest#getGrailsApplication(), grails.testing.gorm.DataTest#getLocalOverride(), grails.testing.gorm.DataTest#getOptionalServletContext(), grails.testing.gorm.DataTest#getMessageSource(), grails.testing.gorm.DataTest#defineBeans(java.lang.Object), grails.testing.gorm.DataTest#defineBeans(groovy.lang.Closure), grails.testing.gorm.DataTest#doWithSpring(), grails.testing.gorm.DataTest#doWithConfig(), grails.testing.gorm.DataTest#getIncludePlugins(), grails.testing.gorm.DataTest#loadExternalBeans(), grails.testing.gorm.DataTest#cleanupGrailsApplication() diff --git a/6.0.0-M1/ghpages.html b/6.0.0-M1/ghpages.html index 64b059d..4e7bec5 100644 --- a/6.0.0-M1/ghpages.html +++ b/6.0.0-M1/ghpages.html @@ -59,7 +59,7 @@ - + Fork me on GitHub @@ -79,7 +79,7 @@

Build Test Data - 6.0.0-M1 (Grails 7+)

  • User Guide
  • -

    Build Test Data - 5.0.0 (Grails 4 & 5)

    +

    Build Test Data - 5.0.0 (Grails 5 & 6)

    diff --git a/6.0.0-M1/index.html b/6.0.0-M1/index.html index b48b25b..a2ae154 100644 --- a/6.0.0-M1/index.html +++ b/6.0.0-M1/index.html @@ -555,11 +555,12 @@

    Build Test Data Users Guide

  • 4. Installation
  • 5. Upgrading @@ -874,25 +875,31 @@

    4. Installation

    Unfortunately, this makes it impossible to have one plugin which is compatible with all prior versions.

    -

    4.1. Grails 5.0 or later

    +

    4.1. Grails 7.0 or later

    -

    testImplementation "io.github.jdaugherty:build-test-data:6.0.0-M1"

    +

    testImplementation "io.github.longwa:build-test-data:6.0.0-M1"

    -

    4.2. Grails 4.0

    +

    4.2. Grails 5.0 or Grails 6.0

    +
    +

    testImplementation "io.github.longwa:build-test-data:5.0.0"

    +
    +
    +
    +

    4.3. Grails 4.0

    testCompile "org.grails.plugins:build-test-data:4.0.0"

    -

    4.3. Grails 3.3

    +

    4.4. Grails 3.3

    testCompile "org.grails.plugins:build-test-data:3.3.1"

    -

    4.4. Grails 3.1 and 3.2

    +

    4.5. Grails 3.1 and 3.2

    testCompile "org.grails.plugins:build-test-data:3.0.1"

    @@ -910,14 +917,14 @@

    4.4. Grails 3.1 and 3.2

    -

    4.5. Grails 2.x

    +

    4.6. Grails 2.x

    @@ -2003,7 +2010,7 @@

    10.4. Logging Information

    diff --git a/6.0.x/gapi/allclasses-frame.html b/6.0.x/gapi/allclasses-frame.html new file mode 100644 index 0000000..2978e3a --- /dev/null +++ b/6.0.x/gapi/allclasses-frame.html @@ -0,0 +1,87 @@ + + + + +All Classes + + + + + + + +

    All Classes

    + + + diff --git a/6.0.x/gapi/deprecated-list.html b/6.0.x/gapi/deprecated-list.html new file mode 100644 index 0000000..f6685f9 --- /dev/null +++ b/6.0.x/gapi/deprecated-list.html @@ -0,0 +1,106 @@ + + + + + + + + Deprecated API (Groovy Documentation) + + + + + + + + + + +
    + + + + + +
    + + +
    +

    Deprecated API

    +

    Contents

    +
      + +
    +
    +
    + + +
    + +
    + + + + + +
    + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/BuildDataTest.html b/6.0.x/gapi/grails/buildtestdata/BuildDataTest.html new file mode 100644 index 0000000..0d15e5f --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/BuildDataTest.html @@ -0,0 +1,284 @@ + + + + + + + + + + + BuildDataTest (Groovy Documentation) + + + + + + + + + + +
    + + + + + +
    + + + + + +
    + +
    Package: grails.buildtestdata
    + +

    [Groovy] Trait BuildDataTest

    +
    +
    +
      +
          • grails.buildtestdata.BuildDataTest +
          +
          +
            +
          • + +
            +
            All Implemented Interfaces and Traits:
            +
            TestDataBuilder
            +
            + + + +
            + +
            @groovy.transform.Trait
            +@groovy.transform.CompileStatic
            +@java.lang.SuppressWarnings(value: GroovyUnusedDeclaration)
            +trait BuildDataTest
            +extends DependencyDataTest
            +implements TestDataBuilder
            + +

            Unit tests should implement this trait to add build-test-data functionality. + Meant as a drop in replacement for Grails Testing Support's DataTest

            + +
          • +
          +
          + +
          + +
          + +
          +
            +
          • + + + + + + + + + + + + + +
              +
            • + + +

              Method Detail

              + + +
                +
              • +

                @grails.testing.spock.OnceBefore
                void handleBuildAnnotation()

                +

                +
              • +
              + + +
                +
              • +

                @java.lang.Override
                void mockDomains(java.lang.Class<?>[] domainClassesToMock)

                +

                +
              • +
              + +
            • +
            + +
          • +
          +
          + + + +
          + + + + + +
          + + +
          + + + diff --git a/6.0.x/gapi/grails/buildtestdata/BuildDomainTest.html b/6.0.x/gapi/grails/buildtestdata/BuildDomainTest.html new file mode 100644 index 0000000..e905312 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/BuildDomainTest.html @@ -0,0 +1,359 @@ + + + + + + + + + + + BuildDomainTest (Groovy Documentation) + + + + + + + + + + +
          + + + + + +
          + + + + + +
          + +
          Package: grails.buildtestdata
          + +

          [Groovy] Trait BuildDomainTest<D>

          +
          +
          +
            +
            • grails.buildtestdata.BuildDomainTest +
            +
            +
              +
            • + +
              +
              All Implemented Interfaces and Traits:
              +
              BuildDataTest
              +
              + + + +
              + +
              @groovy.transform.Trait
              +@groovy.transform.CompileStatic
              +trait BuildDomainTest<D>
              +extends java.lang.Object
              +implements BuildDataTest
              + +

              Should works as a drop in replacement for the Grails Testing Support's + grails.testing.gorm.DomainUnitTest for testing a single entity using Generics + Its walks the tree so if you have a Book that has a required Author association you only need to do + implement BuildDomainTest and it will take care of mocking the Author for you.

              + +
            • +
            +
            + +
            +
              +
            • + + + + + + + + + + + + + + + + + + +
                + +
              • +

                Methods Summary

                +
                  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                  Methods 
                  Type ParamsReturn TypeName and description
                  Dbuild()
                  Dbuild(java.util.Map args)
                  Dbuild(java.util.Map args, java.util.Map<java.lang.String, java.lang.Object> propValues)
                  DgetDomain(java.util.Map args)
                  keeps the method consistent with DomainUnitTest with the exception that this calls save(failOnError:true) by default + to change just pass in args. getDomain(save: false) for example will set it up and not call save at all. +
                  java.lang.Class<?>[]getDomainClassesToMock()
                  this is called by the org.grails.testing.gorm.spock.DataTestSetupSpecInterceptor
                  DgetEntity(java.util.Map args)
                  an entity instance of the Gorm class set as the generic. both getDomain and getEntity are the same thing
                  java.lang.Class<D>getEntityClass()
                  +
                +
              • + +
              • +

                Inherited Methods Summary

                +
                  + + + + + + + + + + + +
                  Inherited Methods 
                  Methods inherited from className
                  class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                  +
                +
              • + +
              + +
            • +
            +
            + +
            +
              +
            • + + + + + + + + + + + + + +
                +
              • + + +

                Method Detail

                + + +
                  +
                • +

                  D build()

                  +

                  +
                • +
                + + +
                  +
                • +

                  D build(java.util.Map args)

                  +

                  +
                • +
                + + +
                  +
                • +

                  D build(java.util.Map args, java.util.Map<java.lang.String, java.lang.Object> propValues)

                  +

                  +
                • +
                + + +
                  +
                • +

                  D getDomain(java.util.Map args)

                  +

                  keeps the method consistent with DomainUnitTest with the exception that this calls save(failOnError:true) by default + to change just pass in args. getDomain(save: false) for example will set it up and not call save at all. + getDomain(failOnError:false) would call save with throwing an exception on validation.

                  Returns:
                  An instance of the domain class,

                  +
                • +
                + + +
                  +
                • +

                  @java.lang.Override
                  java.lang.Class<?>[] getDomainClassesToMock()

                  +

                  this is called by the org.grails.testing.gorm.spock.DataTestSetupSpecInterceptor

                  +
                • +
                + + +
                  +
                • +

                  D getEntity(java.util.Map args)

                  +

                  an entity instance of the Gorm class set as the generic. both getDomain and getEntity are the same thing

                  +
                • +
                + + +
                  +
                • +

                  java.lang.Class<D> getEntityClass()

                  +

                  +
                • +
                + +
              • +
              + +
            • +
            +
            + + + +
            + + + + + +
            + + +
            + + + diff --git a/6.0.x/gapi/grails/buildtestdata/BuildHibernateTest.html b/6.0.x/gapi/grails/buildtestdata/BuildHibernateTest.html new file mode 100644 index 0000000..a0e271b --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/BuildHibernateTest.html @@ -0,0 +1,283 @@ + + + + + + + + + + + BuildHibernateTest (Groovy Documentation) + + + + + + + + + + +
            + + + + + +
            + + + + + +
            + +
            Package: grails.buildtestdata
            + +

            [Groovy] Trait BuildHibernateTest

            +
            +
            +
              +
              • grails.buildtestdata.BuildHibernateTest +
              +
              +
                +
              • + +
                +
                All Implemented Interfaces and Traits:
                +
                TestDataBuilder
                +
                + + + +
                + +
                @groovy.transform.Trait
                +@groovy.transform.CompileStatic
                +@java.lang.SuppressWarnings(value: GroovyUnusedDeclaration)
                +trait BuildHibernateTest
                +extends java.lang.Object
                +implements TestDataBuilder
                + +

                Support build test data functionality for unit tests that extend HibernateSpec

                Since:
                3.3.1

                + +
              • +
              +
              + +
              +
                +
              • + + + + + + + + + + + + + + + + + + +
                  + +
                • +

                  Methods Summary

                  +
                    + + + + + + + + + + + + + + + + + + + + +
                    Methods 
                    Type ParamsReturn TypeName and description
                    abstract java.util.List<java.lang.Class>getDomainClasses()
                    HibernateSpec must already override this method to provide the domains they are using
                    voidsetupBuildMethods()
                    +
                  +
                • + +
                • +

                  Inherited Methods Summary

                  +
                    + + + + + + + + + + + +
                    Inherited Methods 
                    Methods inherited from className
                    class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                    +
                  +
                • + +
                + +
              • +
              +
              + +
              +
                +
              • + + + + + + + + + + + + + +
                  +
                • + + +

                  Method Detail

                  + + +
                    +
                  • +

                    abstract java.util.List<java.lang.Class> getDomainClasses()

                    +

                    HibernateSpec must already override this method to provide the domains they are using

                    +
                  • +
                  + + +
                    +
                  • +

                    @grails.testing.spock.OnceBefore
                    void setupBuildMethods()

                    +

                    +
                  • +
                  + +
                • +
                + +
              • +
              +
              + + + +
              + + + + + +
              + + +
              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/TestData.html b/6.0.x/gapi/grails/buildtestdata/TestData.html new file mode 100644 index 0000000..b4da5d4 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/TestData.html @@ -0,0 +1,473 @@ + + + + + + + + + + + TestData (Groovy Documentation) + + + + + + + + + + +
              + + + + + +
              + + + + + +
              + +
              Package: grails.buildtestdata
              + +

              [Groovy] Class TestData

              +
              +
              +
                +
                • grails.buildtestdata.TestData +
                +
                +
                  +
                • + + + +
                  + +
                  @groovy.transform.CompileStatic
                  +class TestData
                  +extends java.lang.Object
                  + +

                  Primary static API to build a domain instance with test data

                  + +
                • +
                +
                + +
                +
                  +
                • + + + + + + + + + + + + + + + + + + +
                    +
                  • +

                    Constructor Summary

                    +
                      + + + + + + + + + + +
                      Constructors 
                      Constructor and description
                      + TestData()
                      +
                    +
                  • +
                  + + + + +
                    + +
                  • +

                    Methods Summary

                    +
                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                      Methods 
                      Type ParamsReturn TypeName and description
                      <T>static Tbuild(java.lang.Class<T> entityClass, java.util.Map<java.lang.String, java.lang.Object> data)
                      calls build
                      <T>static Tbuild(java.util.Map args, java.lang.Class<T> entityClass)
                      pulls/parses the args map and calls build(Map, Class, Map)
                      <T>static Tbuild(java.util.Map args, java.lang.Class<T> entityClass, java.util.Map<java.lang.String, java.lang.Object> data)
                      finds a DataBuilder for the entityClass an calls build. see PersistentEntityDataBuilder.build for example
                      static voidclear()
                      static DataBuildercreateBuilder(java.lang.Class clazz)
                      creates a new DataBuilder by looking through the factories for one that supports the class.
                      static DataBuilderfindBuilder(java.lang.Class clazz)
                      Find in cache or create a builder
                      <T>static TfindOrBuild(java.lang.Class<T> entityClass, java.util.Map<java.lang.String, java.lang.Object> data)
                      tried to find the an existing entity in the store, otherwise build its
                      static java.lang.ObjectgetInitialPropsResolver()
                      +
                    +
                  • + +
                  • +

                    Inherited Methods Summary

                    +
                      + + + + + + + + + + + +
                      Inherited Methods 
                      Methods inherited from className
                      class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                      +
                    +
                  • + +
                  + +
                • +
                +
                + +
                +
                  +
                • + + + + + + + + + + + + + +
                    +
                  • + + +

                    Constructor Detail

                    + + +
                      +
                    • +

                      TestData()

                      +

                      +
                    • +
                    + +
                  • +
                  + + + + + +
                    +
                  • + + +

                    Method Detail

                    + + +
                      +
                    • +

                      <T> static T build(java.lang.Class<T> entityClass, java.util.Map<java.lang.String, java.lang.Object> data)

                      +

                      calls build

                      +
                    • +
                    + + +
                      +
                    • +

                      <T> static T build(java.util.Map args, java.lang.Class<T> entityClass)

                      +

                      pulls/parses the args map and calls build(Map, Class, Map)

                      Parameters:
                      args - optional argument map
                      see desc on build(Map, Class, Map)
                      + Adds the following option
                      + - data : a map of data to bind, can also just be in the args. usefull if you have a field named 'save' or 'find' etc..
                      entityClass - the domain class for the entity that is built
                      Returns:
                      the built entity.

                      +
                    • +
                    + + +
                      +
                    • +

                      <T> static T build(java.util.Map args, java.lang.Class<T> entityClass, java.util.Map<java.lang.String, java.lang.Object> data)

                      +

                      finds a DataBuilder for the entityClass an calls build. see PersistentEntityDataBuilder.build for example

                      Parameters:
                      args - optional argument map
                      + - save : (default: true) whether to call the save method when its a GormEntity
                      + - find : (default: false) whether to try and find the entity in the datastore first
                      + - flush : (default: false) passed in the args to the GormEntity save method
                      + - failOnError : (default: true) passed in the args to the GormEntity save method
                      + - include : a list of the properties to build in addition to the required fields. use `*` to build all
                      entityClass - the domain class to use
                      data - properties to set on the entity instance before it tries to build tests data
                      Returns:
                      the built and saved entity instance

                      +
                    • +
                    + + +
                      +
                    • +

                      static void clear()

                      +

                      +
                    • +
                    + + +
                      +
                    • +

                      static DataBuilder createBuilder(java.lang.Class clazz)

                      +

                      creates a new DataBuilder by looking through the factories for one that supports the class. + @return

                      Parameters:
                      clazz

                      +
                    • +
                    + + +
                      +
                    • +

                      static DataBuilder findBuilder(java.lang.Class clazz)

                      +

                      Find in cache or create a builder + @return

                      Parameters:
                      clazz

                      +
                    • +
                    + + +
                      +
                    • +

                      <T> static T findOrBuild(java.lang.Class<T> entityClass, java.util.Map<java.lang.String, java.lang.Object> data)

                      +

                      tried to find the an existing entity in the store, otherwise build its

                      Parameters:
                      entityClass - the domain class to use
                      data - to be used in the finder or if not found used to build it.
                      Returns:
                      the built and saved entity instance

                      +
                    • +
                    + + +
                      +
                    • +

                      static java.lang.Object getInitialPropsResolver()

                      +

                      +
                    • +
                    + +
                  • +
                  + +
                • +
                +
                + + + +
                + + + + + +
                + + +
                + + + diff --git a/6.0.x/gapi/grails/buildtestdata/TestDataBuilder.html b/6.0.x/gapi/grails/buildtestdata/TestDataBuilder.html new file mode 100644 index 0000000..bc3c270 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/TestDataBuilder.html @@ -0,0 +1,347 @@ + + + + + + + + + + + TestDataBuilder (Groovy Documentation) + + + + + + + + + + +
                + + + + + +
                + + + + + +
                + +
                Package: grails.buildtestdata
                + +

                [Groovy] Trait TestDataBuilder

                +
                +
                +
                  +
                  • grails.buildtestdata.TestDataBuilder +
                  +
                  +
                    +
                  • + + + +
                    + +
                    @groovy.transform.Trait
                    +@groovy.transform.CompileStatic
                    +@java.lang.SuppressWarnings(value: GroovyUnusedDeclaration)
                    +trait TestDataBuilder
                    +extends java.lang.Object
                    + +

                    Integration tests, any class really, can implement this trait to add build-test-data functionality

                    + +
                  • +
                  +
                  + +
                  +
                    +
                  • + + + + + + + + + + + + + + + + + + +
                      + +
                    • +

                      Methods Summary

                      +
                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                        Methods 
                        Type ParamsReturn TypeName and description
                        <T>Tbuild(java.util.Map args, java.lang.Class<T> clazz)
                        calls TestData.build
                        <T>Tbuild(java.lang.Class<T> clazz, java.util.Map<java.lang.String, java.lang.Object> propValues)
                        calls TestData.build
                        <T>Tbuild(java.util.Map args, java.lang.Class<T> clazz, java.util.Map<java.lang.String, java.lang.Object> propValues)
                        calls TestData.build
                        static voidcleanupTestDataBuilder()
                        groovy.lang.ClosuredoWithTestDataConfig()
                        Override this to override test data configuration for this test class
                        <T>TfindOrBuild(java.lang.Class<T> clazz, java.util.Map<java.lang.String, java.lang.Object> propValues)
                        calls TestData.build with [find: true] passed to args
                        voidsetupCustomTestDataConfig()
                        +
                      +
                    • + +
                    • +

                      Inherited Methods Summary

                      +
                        + + + + + + + + + + + +
                        Inherited Methods 
                        Methods inherited from className
                        class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                        +
                      +
                    • + +
                    + +
                  • +
                  +
                  + +
                  +
                    +
                  • + + + + + + + + + + + + + +
                      +
                    • + + +

                      Method Detail

                      + + +
                        +
                      • +

                        <T> T build(java.util.Map args, java.lang.Class<T> clazz)

                        +

                        calls TestData.build

                        +
                      • +
                      + + +
                        +
                      • +

                        <T> T build(java.lang.Class<T> clazz, java.util.Map<java.lang.String, java.lang.Object> propValues)

                        +

                        calls TestData.build

                        +
                      • +
                      + + +
                        +
                      • +

                        <T> T build(java.util.Map args, java.lang.Class<T> clazz, java.util.Map<java.lang.String, java.lang.Object> propValues)

                        +

                        calls TestData.build

                        +
                      • +
                      + + +
                        +
                      • +

                        @org.junit.jupiter.api.AfterAll
                        static void cleanupTestDataBuilder()

                        +

                        +
                      • +
                      + + +
                        +
                      • +

                        groovy.lang.Closure doWithTestDataConfig()

                        +

                        Override this to override test data configuration for this test class

                        +
                      • +
                      + + +
                        +
                      • +

                        <T> T findOrBuild(java.lang.Class<T> clazz, java.util.Map<java.lang.String, java.lang.Object> propValues)

                        +

                        calls TestData.build with [find: true] passed to args

                        +
                      • +
                      + + +
                        +
                      • +

                        @org.junit.jupiter.api.BeforeEach
                        void setupCustomTestDataConfig()

                        +

                        +
                      • +
                      + +
                    • +
                    + +
                  • +
                  +
                  + + + +
                  + + + + + +
                  + + +
                  + + + diff --git a/6.0.x/gapi/grails/buildtestdata/TestDataConfiguration.html b/6.0.x/gapi/grails/buildtestdata/TestDataConfiguration.html new file mode 100644 index 0000000..3a69910 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/TestDataConfiguration.html @@ -0,0 +1,476 @@ + + + + + + + + + + + TestDataConfiguration (Groovy Documentation) + + + + + + + + + + +
                  + + + + + +
                  + + + + + +
                  + +
                  Package: grails.buildtestdata
                  + +

                  [Groovy] Class TestDataConfiguration

                  +
                  +
                  +
                    +
                    • grails.buildtestdata.TestDataConfiguration +
                    +
                    +
                      +
                    • + + + +
                      + +
                      @groovy.transform.CompileStatic
                      +@groovy.util.logging.Slf4j
                      +class TestDataConfiguration
                      +extends java.lang.Object
                      + +
                    • +
                    +
                    + +
                    +
                      +
                    • + + + + + + + + + + +
                        +
                      • +

                        Properties Summary

                        +
                          + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                          Properties 
                          TypeName and description
                          java.util.Map<java.lang.String, java.lang.Class> abstractDefault
                          groovy.util.ConfigSlurper configSlurper
                          java.util.Map<java.lang.String, java.lang.Object> sampleData
                          java.util.Map<java.lang.String, java.util.List<java.lang.Class>> unitAdditionalBuild
                          +
                        +
                      • + +
                      + + + + + + + +
                        +
                      • +

                        Constructor Summary

                        +
                          + + + + + + + + + + +
                          Constructors 
                          Constructor and description
                          + TestDataConfiguration(org.springframework.core.io.Resource testDataConfigResource)
                          +
                        +
                      • +
                      + + + + +
                        + +
                      • +

                        Methods Summary

                        +
                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                          Methods 
                          Type ParamsReturn TypeName and description
                          java.lang.ClassgetAbstractDefaultFor(java.lang.String domainName)
                          java.util.Map<java.lang.String, java.lang.Object>getConfigFor(java.lang.String domainName)
                          java.util.Set<java.lang.String>getConfigPropertyNames(java.lang.String domainName)
                          java.util.Map<java.lang.String, java.lang.Object>getPropertyValues(java.lang.String domainName, java.lang.Object newInstance, java.util.Set<java.lang.String> propertyNames, java.util.Map<java.lang.String, java.lang.Object> propertyValues)
                          java.lang.ObjectgetSuppliedPropertyValue(java.util.Map<java.lang.String, java.lang.Object> propertyValues, java.lang.String domainName, java.lang.String propertyName, java.lang.Object newInstance)
                          java.util.List<java.lang.Class>getUnitAdditionalBuildFor(java.lang.String domainName)
                          voidinitialize(org.springframework.core.io.Resource testDataConfigResource)
                          voidmergeConfig(groovy.util.ConfigObject config)
                          +
                        +
                      • + +
                      • +

                        Inherited Methods Summary

                        +
                          + + + + + + + + + + + +
                          Inherited Methods 
                          Methods inherited from className
                          class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                          +
                        +
                      • + +
                      + +
                    • +
                    +
                    + +
                    +
                      +
                    • + + + + + + +
                        +
                      • + + +

                        Property Detail

                        + + +
                          +
                        • +

                          java.util.Map<java.lang.String, java.lang.Class> abstractDefault

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          final groovy.util.ConfigSlurper configSlurper

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          java.util.Map<java.lang.String, java.lang.Object> sampleData

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          java.util.Map<java.lang.String, java.util.List<java.lang.Class>> unitAdditionalBuild

                          +

                          +
                        • +
                        + +
                      • +
                      + + + + + + +
                        +
                      • + + +

                        Constructor Detail

                        + + +
                          +
                        • +

                          TestDataConfiguration(org.springframework.core.io.Resource testDataConfigResource)

                          +

                          +
                        • +
                        + +
                      • +
                      + + + + + +
                        +
                      • + + +

                        Method Detail

                        + + +
                          +
                        • +

                          java.lang.Class getAbstractDefaultFor(java.lang.String domainName)

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          java.util.Map<java.lang.String, java.lang.Object> getConfigFor(java.lang.String domainName)

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          java.util.Set<java.lang.String> getConfigPropertyNames(java.lang.String domainName)

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          java.util.Map<java.lang.String, java.lang.Object> getPropertyValues(java.lang.String domainName, java.lang.Object newInstance, java.util.Set<java.lang.String> propertyNames, java.util.Map<java.lang.String, java.lang.Object> propertyValues)

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          java.lang.Object getSuppliedPropertyValue(java.util.Map<java.lang.String, java.lang.Object> propertyValues, java.lang.String domainName, java.lang.String propertyName, java.lang.Object newInstance)

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          java.util.List<java.lang.Class> getUnitAdditionalBuildFor(java.lang.String domainName)

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          void initialize(org.springframework.core.io.Resource testDataConfigResource)

                          +

                          +
                        • +
                        + + +
                          +
                        • +

                          void mergeConfig(groovy.util.ConfigObject config)

                          +

                          +
                        • +
                        + +
                      • +
                      + +
                    • +
                    +
                    + + + +
                    + + + + + +
                    + + +
                    + + + diff --git a/6.0.x/gapi/grails/buildtestdata/TestDataConfigurationHolder.html b/6.0.x/gapi/grails/buildtestdata/TestDataConfigurationHolder.html new file mode 100644 index 0000000..160d2a9 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/TestDataConfigurationHolder.html @@ -0,0 +1,480 @@ + + + + + + + + + + + TestDataConfigurationHolder (Groovy Documentation) + + + + + + + + + + +
                    + + + + + +
                    + + + + + +
                    + +
                    Package: grails.buildtestdata
                    + +

                    [Groovy] Class TestDataConfigurationHolder

                    +
                    +
                    +
                      +
                      • grails.buildtestdata.TestDataConfigurationHolder +
                      +
                      +
                        +
                      • + + + +
                        + +
                        @groovy.util.logging.Slf4j
                        +@groovy.transform.CompileStatic
                        +@java.lang.SuppressWarnings(value: GroovyUnusedDeclaration)
                        +class TestDataConfigurationHolder
                        +extends java.lang.Object
                        + +
                      • +
                      +
                      + +
                      +
                        +
                      • + + + + + + + + + + + + + + + + + + + + + + + +
                          + +
                        • +

                          Methods Summary

                          +
                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                            Methods 
                            Type ParamsReturn TypeName and description
                            static java.lang.ClassgetAbstractDefaultFor(java.lang.String domainName)
                            static java.util.Map<java.lang.String, java.lang.Object>getConfigFor(java.lang.String domainName)
                            static java.util.Set<java.lang.String>getConfigPropertyNames(java.lang.String domainName)
                            static org.springframework.core.io.ResourcegetDefaultTestDataConfigResource()
                            static java.util.Map<java.lang.String, java.lang.Object>getPropertyValues(java.lang.String domainName, java.lang.Object newInstance, java.util.Set<java.lang.String> propertyNames, java.util.Map<java.lang.String, java.lang.Object> propertyValues)
                            static java.lang.ObjectgetSuppliedPropertyValue(java.util.Map<java.lang.String, java.lang.Object> propertyValues, java.lang.String domainName, java.lang.String propertyName)
                            static java.util.List<java.lang.Class>getUnitAdditionalBuildFor(java.lang.String domainName)
                            static voidloadTestDataConfig()
                            static voidmergeConfig(groovy.lang.Closure block)
                            Takes a testDataConfig { ... } block that is merged over the default values
                            static voidreset()
                            static voidsetSampleData(java.util.Map<java.lang.String, java.lang.Object> sampleData)
                            +
                          +
                        • + +
                        • +

                          Inherited Methods Summary

                          +
                            + + + + + + + + + + + +
                            Inherited Methods 
                            Methods inherited from className
                            class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                            +
                          +
                        • + +
                        + +
                      • +
                      +
                      + +
                      +
                        +
                      • + + + + + + + + + + + + + +
                          +
                        • + + +

                          Constructor Detail

                          + + +
                            +
                          • +

                            TestDataConfigurationHolder()

                            +

                            +
                          • +
                          + +
                        • +
                        + + + + + +
                          +
                        • + + +

                          Method Detail

                          + + +
                            +
                          • +

                            static java.lang.Class getAbstractDefaultFor(java.lang.String domainName)

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static java.util.Map<java.lang.String, java.lang.Object> getConfigFor(java.lang.String domainName)

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static java.util.Set<java.lang.String> getConfigPropertyNames(java.lang.String domainName)

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static org.springframework.core.io.Resource getDefaultTestDataConfigResource()

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static java.util.Map<java.lang.String, java.lang.Object> getPropertyValues(java.lang.String domainName, java.lang.Object newInstance, java.util.Set<java.lang.String> propertyNames, java.util.Map<java.lang.String, java.lang.Object> propertyValues)

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static java.lang.Object getSuppliedPropertyValue(java.util.Map<java.lang.String, java.lang.Object> propertyValues, java.lang.String domainName, java.lang.String propertyName)

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static java.util.List<java.lang.Class> getUnitAdditionalBuildFor(java.lang.String domainName)

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static void loadTestDataConfig()

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static void mergeConfig(groovy.lang.Closure block)

                            +

                            Takes a testDataConfig { ... } block that is merged over the default values

                            Parameters:
                            block

                            +
                          • +
                          + + +
                            +
                          • +

                            static void reset()

                            +

                            +
                          • +
                          + + +
                            +
                          • +

                            static void setSampleData(java.util.Map<java.lang.String, java.lang.Object> sampleData)

                            +

                            +
                          • +
                          + +
                        • +
                        + +
                      • +
                      +
                      + + + +
                      + + + + + +
                      + + +
                      + + + diff --git a/6.0.x/gapi/grails/buildtestdata/UnitTestDataBuilder.html b/6.0.x/gapi/grails/buildtestdata/UnitTestDataBuilder.html new file mode 100644 index 0000000..59e6f72 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/UnitTestDataBuilder.html @@ -0,0 +1,225 @@ + + + + + + + + + + + UnitTestDataBuilder (Groovy Documentation) + + + + + + + + + + +
                      + + + + + +
                      + + + + + +
                      + +
                      Package: grails.buildtestdata
                      + +

                      [Groovy] Trait UnitTestDataBuilder

                      +
                      +
                      +
                        +
                              • grails.buildtestdata.UnitTestDataBuilder +
                              +
                              +
                                +
                              • + + + +
                                + +
                                @groovy.transform.Trait
                                +@java.lang.Deprecated
                                +trait UnitTestDataBuilder
                                +extends BuildDataTest
                                + +
                              • +
                              +
                              + +
                              + +
                              + +
                              +
                                +
                              • + + + + + + + + + + + + +
                              • +
                              +
                              + + + +
                              + + + + + +
                              + + +
                              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/DataBuilder.html b/6.0.x/gapi/grails/buildtestdata/builders/DataBuilder.html new file mode 100644 index 0000000..8e8f6fc --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/DataBuilder.html @@ -0,0 +1,257 @@ + + + + + + + + + + + DataBuilder (Groovy Documentation) + + + + + + + + + + +
                              + + + + + +
                              + + + + + +
                              + +
                              Package: grails.buildtestdata.builders
                              + +

                              [Groovy] Interface DataBuilder

                              +
                              +
                              +
                                + +
                              +
                              +
                                +
                              • + + +
                                + +
                                interface DataBuilder
                                + +
                              • +
                              +
                              + +
                              +
                                +
                              • + + + + + + + + + + + + + + + + + + +
                                  + +
                                • +

                                  Methods Summary

                                  +
                                    + + + + + + + + + + + + + + + + + + + + +
                                    Methods 
                                    Type ParamsReturn TypeName and description
                                    abstract java.lang.Objectbuild(DataBuilderContext ctx)
                                    builds the data using the passed in context
                                    abstract java.lang.Objectbuild(java.util.Map args, DataBuilderContext ctx)
                                    builds the data using the passed in context
                                    +
                                  +
                                • + +
                                + +
                              • +
                              +
                              + +
                              +
                                +
                              • + + + + + + + + + + + + + +
                                  +
                                • + + +

                                  Method Detail

                                  + + +
                                    +
                                  • +

                                    abstract java.lang.Object build(DataBuilderContext ctx)

                                    +

                                    builds the data using the passed in context

                                    Parameters:
                                    ctx - the DataBuilderContext
                                    Returns:
                                    the built entity.

                                    +
                                  • +
                                  + + +
                                    +
                                  • +

                                    abstract java.lang.Object build(java.util.Map args, DataBuilderContext ctx)

                                    +

                                    builds the data using the passed in context

                                    Parameters:
                                    args - optional argument map
                                    + - save : (default: true) whether to call the save method when its a GormEntity
                                    + - find : (default: false) whether to try and find the entity in the datastore first
                                    + - flush : (default: false) passed in the args to the GormEntity save method
                                    + - failOnError : (default: true) passed in the args to the GormEntity save method
                                    + - include : a list of the properties to build in addition to the required fields. use `*` to build all
                                    ctx - the DataBuilderContext
                                    Returns:
                                    the built entity.

                                    +
                                  • +
                                  + +
                                • +
                                + +
                              • +
                              +
                              + + + +
                              + + + + + +
                              + + +
                              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/DataBuilderContext.html b/6.0.x/gapi/grails/buildtestdata/builders/DataBuilderContext.html new file mode 100644 index 0000000..aca10fb --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/DataBuilderContext.html @@ -0,0 +1,423 @@ + + + + + + + + + + + DataBuilderContext (Groovy Documentation) + + + + + + + + + + +
                              + + + + + +
                              + + + + + +
                              + +
                              Package: grails.buildtestdata.builders
                              + +

                              [Groovy] Class DataBuilderContext

                              +
                              +
                              +
                                +
                                • grails.buildtestdata.builders.DataBuilderContext +
                                +
                                +
                                  +
                                • + + + +
                                  + +
                                  @groovy.transform.CompileStatic
                                  +class DataBuilderContext
                                  +extends java.lang.Object
                                  + +

                                  a context object that is passed around + holds the data and caches the know instances that are already created

                                  + +
                                • +
                                +
                                + +
                                +
                                  +
                                • + + + + + + + + + + +
                                    +
                                  • +

                                    Properties Summary

                                    +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Properties 
                                      TypeName and description
                                      java.util.Map<java.lang.String, ?> data
                                      java.lang.Object includes
                                      java.util.Map<java.lang.Class, java.lang.Object> knownInstances
                                      java.lang.Object target
                                      +
                                    +
                                  • + +
                                  + + + + + + + +
                                    +
                                  • +

                                    Constructor Summary

                                    + +
                                  • +
                                  + + + + +
                                    + +
                                  • +

                                    Methods Summary

                                    +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Methods 
                                      Type ParamsReturn TypeName and description
                                      DataBuilderContextcreateCopy(java.lang.String property)
                                      Clones this context and sets drills down the for the property if it exists
                                      java.lang.ObjectsatisfyNested(java.lang.Object instance, java.lang.String property, java.lang.Class propertyType, boolean save)
                                      Parameters:
                                      instance - the instance to use
                                      java.lang.ObjectsatisfyNestedWithNew(java.lang.Object instance, java.lang.String property, java.lang.Class propertyType)
                                      doesn't use knownInstances cache and creates a new object for the property
                                      +
                                    +
                                  • + +
                                  • +

                                    Inherited Methods Summary

                                    +
                                      + + + + + + + + + + + +
                                      Inherited Methods 
                                      Methods inherited from className
                                      class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                      +
                                    +
                                  • + +
                                  + +
                                • +
                                +
                                + +
                                +
                                  +
                                • + + + + + + +
                                    +
                                  • + + +

                                    Property Detail

                                    + + +
                                      +
                                    • +

                                      java.util.Map<java.lang.String, ?> data

                                      +

                                      +
                                    • +
                                    + + +
                                      +
                                    • +

                                      java.lang.Object includes

                                      +

                                      +
                                    • +
                                    + + +
                                      +
                                    • +

                                      java.util.Map<java.lang.Class, java.lang.Object> knownInstances

                                      +

                                      +
                                    • +
                                    + + +
                                      +
                                    • +

                                      java.lang.Object target

                                      +

                                      +
                                    • +
                                    + +
                                  • +
                                  + + + + + + +
                                    +
                                  • + + +

                                    Constructor Detail

                                    + + +
                                      +
                                    • +

                                      DataBuilderContext()

                                      +

                                      +
                                    • +
                                    + + +
                                      +
                                    • +

                                      DataBuilderContext(java.util.Map<java.lang.String, ?> data)

                                      +

                                      +
                                    • +
                                    + +
                                  • +
                                  + + + + + +
                                    +
                                  • + + +

                                    Method Detail

                                    + + +
                                      +
                                    • +

                                      DataBuilderContext createCopy(java.lang.String property)

                                      +

                                      Clones this context and sets drills down the for the property if it exists + @return

                                      Parameters:
                                      property

                                      +
                                    • +
                                    + + +
                                      +
                                    • +

                                      java.lang.Object satisfyNested(java.lang.Object instance, java.lang.String property, java.lang.Class propertyType, boolean save)

                                      +

                                      + @return

                                      Parameters:
                                      instance - the instance to use
                                      property - the property to build on the instance
                                      propertyType - the Class for the property
                                      save - true|false on whether to call save

                                      +
                                    • +
                                    + + +
                                      +
                                    • +

                                      java.lang.Object satisfyNestedWithNew(java.lang.Object instance, java.lang.String property, java.lang.Class propertyType)

                                      +

                                      doesn't use knownInstances cache and creates a new object for the property

                                      +
                                    • +
                                    + +
                                  • +
                                  + +
                                • +
                                +
                                + + + +
                                + + + + + +
                                + + +
                                + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/DataBuilderFactory.html b/6.0.x/gapi/grails/buildtestdata/builders/DataBuilderFactory.html new file mode 100644 index 0000000..b63b0b2 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/DataBuilderFactory.html @@ -0,0 +1,252 @@ + + + + + + + + + + + DataBuilderFactory (Groovy Documentation) + + + + + + + + + + +
                                + + + + + +
                                + + + + + +
                                + +
                                Package: grails.buildtestdata.builders
                                + +

                                [Groovy] Interface DataBuilderFactory<T extends DataBuilder>

                                +
                                +
                                +
                                  + +
                                +
                                +
                                  +
                                • + + +
                                  + +
                                  interface DataBuilderFactory<T extends DataBuilder>
                                  + +
                                • +
                                +
                                + +
                                +
                                  +
                                • + + + + + + + + + + + + + + + + + + +
                                    + +
                                  • +

                                    Methods Summary

                                    +
                                      + + + + + + + + + + + + + + + + + + + + +
                                      Methods 
                                      Type ParamsReturn TypeName and description
                                      abstract Tbuild(java.lang.Class target)
                                      abstract booleansupports(java.lang.Class clazz)
                                      +
                                    +
                                  • + +
                                  + +
                                • +
                                +
                                + +
                                +
                                  +
                                • + + + + + + + + + + + + + +
                                    +
                                  • + + +

                                    Method Detail

                                    + + +
                                      +
                                    • +

                                      abstract T build(java.lang.Class target)

                                      +

                                      +
                                    • +
                                    + + +
                                      +
                                    • +

                                      abstract boolean supports(java.lang.Class clazz)

                                      +

                                      +
                                    • +
                                    + +
                                  • +
                                  + +
                                • +
                                +
                                + + + +
                                + + + + + +
                                + + +
                                + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.Factory.html b/6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.Factory.html new file mode 100644 index 0000000..4e16f43 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.Factory.html @@ -0,0 +1,318 @@ + + + + + + + + + + + PersistentEntityDataBuilder.Factory (Groovy Documentation) + + + + + + + + + + +
                                + + + + + +
                                + + + + + +
                                + +
                                Package: grails.buildtestdata.builders
                                + +

                                [Groovy] Class PersistentEntityDataBuilder.Factory

                                +
                                +
                                +
                                  +
                                  • grails.buildtestdata.builders.PersistentEntityDataBuilder.Factory +
                                  +
                                  + +
                                  + +
                                  +
                                    +
                                  • + + + + + + + + + + + + + + + + + + + + + +
                                      + +
                                    • +

                                      Methods Summary

                                      + +
                                    • + +
                                    • +

                                      Inherited Methods Summary

                                      +
                                        + + + + + + + + + + + +
                                        Inherited Methods 
                                        Methods inherited from className
                                        class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                        +
                                      +
                                    • + +
                                    + +
                                  • +
                                  +
                                  + +
                                  +
                                    +
                                  • + + + + + + + + + + +
                                      +
                                    • + + +

                                      Constructor Detail

                                      + + +
                                        +
                                      • +

                                        PersistentEntityDataBuilder.Factory()

                                        +

                                        +
                                      • +
                                      + +
                                    • +
                                    + + + + + +
                                      +
                                    • + + +

                                      Method Detail

                                      + + + + + +
                                        +
                                      • +

                                        @java.lang.Override
                                        boolean supports(java.lang.Class clazz)

                                        +

                                        +
                                      • +
                                      + +
                                    • +
                                    + +
                                  • +
                                  +
                                  + + + +
                                  + + + + + +
                                  + + +
                                  + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.html b/6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.html new file mode 100644 index 0000000..047090d --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/PersistentEntityDataBuilder.html @@ -0,0 +1,546 @@ + + + + + + + + + + + PersistentEntityDataBuilder (Groovy Documentation) + + + + + + + + + + +
                                  + + + + + +
                                  + + + + + +
                                  + +
                                  Package: grails.buildtestdata.builders
                                  + +

                                  [Groovy] Class PersistentEntityDataBuilder

                                  +
                                  +
                                  +
                                    +
                                        • grails.buildtestdata.builders.PersistentEntityDataBuilder +
                                        +
                                        +
                                          +
                                        • + + + +
                                          + +
                                          @groovy.util.logging.Slf4j
                                          +@groovy.transform.CompileStatic
                                          +class PersistentEntityDataBuilder
                                          +extends ValidateableDataBuilder
                                          + +
                                        • +
                                        +
                                        + +
                                        + +
                                        + +
                                        +
                                          +
                                        • + + + + + + +
                                            +
                                          • + + +

                                            Property Detail

                                            + + +
                                              +
                                            • +

                                              static groovy.lang.Closure entitySave

                                              +

                                              allows implementing tools to replace the closure for any special saving requirements

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              java.util.Set<java.lang.Class> requiredDomainClasses

                                              +

                                              +
                                            • +
                                            + +
                                          • +
                                          + + + + + + +
                                            +
                                          • + + +

                                            Constructor Detail

                                            + + +
                                              +
                                            • +

                                              PersistentEntityDataBuilder(java.lang.Class target)

                                              +

                                              +
                                            • +
                                            + +
                                          • +
                                          + + + + + +
                                            +
                                          • + + +

                                            Method Detail

                                            + + +
                                              +
                                            • +

                                              void applyBiDirectionManyToOnes(org.grails.datastore.gorm.GormEntity domainInstance)

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              @java.lang.Override
                                              java.lang.Object build(java.util.Map args, DataBuilderContext ctx)

                                              +

                                              builds the data using the passed in context

                                              Parameters:
                                              args - optional argument map
                                              + - save : (default: true) whether to call the save method when its a GormEntity
                                              + - find : (default: false) whether to try and find the entity in the datastore first
                                              + - flush : (default: false) passed in the args to the GormEntity save method
                                              + - failOnError : (default: true) passed in the args to the GormEntity save method
                                              + - include : a list of the properties to build in addition to the required fields.
                                              + - includeAll : (default: false) build tests data for all fields in the domain
                                              ctx - the DataBuilderContext
                                              Returns:
                                              the built entity.

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              @java.lang.Override
                                              org.grails.datastore.gorm.GormEntity doBuild(DataBuilderContext ctx)

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              @groovy.transform.CompileDynamic
                                              org.grails.datastore.gorm.GormEntity findInStore(DataBuilderContext ctx)

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              java.util.Set<java.lang.String> findPropsToSaveFirst()

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              java.util.List<org.grails.datastore.mapping.model.types.Association> findRequiredAssociations()

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              java.util.Set<java.lang.Class> findRequiredDomainClasses()

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              @java.lang.Override
                                              java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> getConstraintsMap()

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              org.grails.datastore.mapping.model.MappingContext getMappingContext()

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              org.grails.datastore.mapping.model.PersistentEntity getPersistentEntity()

                                              +

                                              +
                                            • +
                                            + + +
                                              +
                                            • +

                                              org.grails.datastore.gorm.GormEntity save(org.grails.datastore.gorm.GormEntity domainInstance, DataBuilderContext ctx, java.util.Map saveArgs)

                                              +

                                              +
                                            • +
                                            + +
                                          • +
                                          + +
                                        • +
                                        +
                                        + + + +
                                        + + + + + +
                                        + + +
                                        + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.Factory.html b/6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.Factory.html new file mode 100644 index 0000000..e6cd8a9 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.Factory.html @@ -0,0 +1,318 @@ + + + + + + + + + + + PogoDataBuilder.Factory (Groovy Documentation) + + + + + + + + + + +
                                        + + + + + +
                                        + + + + + +
                                        + +
                                        Package: grails.buildtestdata.builders
                                        + +

                                        [Groovy] Class PogoDataBuilder.Factory

                                        +
                                        +
                                        +
                                          +
                                          • grails.buildtestdata.builders.PogoDataBuilder.Factory +
                                          +
                                          + +
                                          + +
                                          +
                                            +
                                          • + + + + + + + + + + + + + + + + +
                                              +
                                            • +

                                              Constructor Summary

                                              + +
                                            • +
                                            + + + + +
                                              + +
                                            • +

                                              Methods Summary

                                              +
                                                + + + + + + + + + + + + + + + + + + + + +
                                                Methods 
                                                Type ParamsReturn TypeName and description
                                                PogoDataBuilderbuild(java.lang.Class target)
                                                booleansupports(java.lang.Class clazz)
                                                +
                                              +
                                            • + +
                                            • +

                                              Inherited Methods Summary

                                              +
                                                + + + + + + + + + + + +
                                                Inherited Methods 
                                                Methods inherited from className
                                                class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                +
                                              +
                                            • + +
                                            + +
                                          • +
                                          +
                                          + +
                                          +
                                            +
                                          • + + + + + + + + + + +
                                              +
                                            • + + +

                                              Constructor Detail

                                              + + +
                                                +
                                              • +

                                                PogoDataBuilder.Factory()

                                                +

                                                +
                                              • +
                                              + +
                                            • +
                                            + + + + + +
                                              +
                                            • + + +

                                              Method Detail

                                              + + +
                                                +
                                              • +

                                                @java.lang.Override
                                                PogoDataBuilder build(java.lang.Class target)

                                                +

                                                +
                                              • +
                                              + + +
                                                +
                                              • +

                                                @java.lang.Override
                                                boolean supports(java.lang.Class clazz)

                                                +

                                                +
                                              • +
                                              + +
                                            • +
                                            + +
                                          • +
                                          +
                                          + + + +
                                          + + + + + +
                                          + + +
                                          + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.html b/6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.html new file mode 100644 index 0000000..2f50cae --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/PogoDataBuilder.html @@ -0,0 +1,436 @@ + + + + + + + + + + + PogoDataBuilder (Groovy Documentation) + + + + + + + + + + +
                                          + + + + + +
                                          + + + + + +
                                          + +
                                          Package: grails.buildtestdata.builders
                                          + +

                                          [Groovy] Class PogoDataBuilder

                                          +
                                          +
                                          +
                                            +
                                            • grails.buildtestdata.builders.PogoDataBuilder +
                                            +
                                            +
                                              +
                                            • + +
                                              +
                                              All Implemented Interfaces and Traits:
                                              +
                                              DataBuilder
                                              +
                                              + + + +
                                              + +
                                              @groovy.transform.CompileStatic
                                              +class PogoDataBuilder
                                              +extends java.lang.Object
                                              +implements DataBuilder
                                              + +
                                            • +
                                            +
                                            + +
                                            +
                                              +
                                            • + + +
                                                +
                                              • +

                                                Nested Class Summary

                                                + +
                                              • +
                                              + + + + + + + + + +
                                                +
                                              • +

                                                Properties Summary

                                                +
                                                  + + + + + + + + + + + + + + + + + +
                                                  Properties 
                                                  TypeName and description
                                                  grails.databinding.DataBinder dataBinder
                                                  java.lang.Class targetClass
                                                  +
                                                +
                                              • + +
                                              + + + + + + + +
                                                +
                                              • +

                                                Constructor Summary

                                                +
                                                  + + + + + + + + + + +
                                                  Constructors 
                                                  Constructor and description
                                                  + PogoDataBuilder(java.lang.Class targetClass)
                                                  +
                                                +
                                              • +
                                              + + + + +
                                                + +
                                              • +

                                                Methods Summary

                                                + +
                                              • + +
                                              • +

                                                Inherited Methods Summary

                                                +
                                                  + + + + + + + + + + + +
                                                  Inherited Methods 
                                                  Methods inherited from className
                                                  class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                  +
                                                +
                                              • + +
                                              + +
                                            • +
                                            +
                                            + +
                                            +
                                              +
                                            • + + + + + + +
                                                +
                                              • + + +

                                                Property Detail

                                                + + +
                                                  +
                                                • +

                                                  grails.databinding.DataBinder dataBinder

                                                  +

                                                  +
                                                • +
                                                + + +
                                                  +
                                                • +

                                                  java.lang.Class targetClass

                                                  +

                                                  +
                                                • +
                                                + +
                                              • +
                                              + + + + + + +
                                                +
                                              • + + +

                                                Constructor Detail

                                                + + +
                                                  +
                                                • +

                                                  PogoDataBuilder(java.lang.Class targetClass)

                                                  +

                                                  +
                                                • +
                                                + +
                                              • +
                                              + + + + + +
                                                +
                                              • + + +

                                                Method Detail

                                                + + + + + +
                                                  +
                                                • +

                                                  @java.lang.Override
                                                  java.lang.Object build(java.util.Map args, DataBuilderContext ctx)

                                                  +

                                                  +
                                                • +
                                                + + + + + +
                                                  +
                                                • +

                                                  java.util.Map<java.lang.String, java.lang.Object> findMissingConfigValues(java.util.Map propValues, java.lang.Object newInstance)

                                                  +

                                                  +
                                                • +
                                                + + +
                                                  +
                                                • +

                                                  java.lang.Object getNewInstance()

                                                  +

                                                  +
                                                • +
                                                + +
                                              • +
                                              + +
                                            • +
                                            +
                                            + + + +
                                            + + + + + +
                                            + + +
                                            + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.Factory.html b/6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.Factory.html new file mode 100644 index 0000000..3dfc0cc --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.Factory.html @@ -0,0 +1,318 @@ + + + + + + + + + + + ValidateableDataBuilder.Factory (Groovy Documentation) + + + + + + + + + + +
                                            + + + + + +
                                            + + + + + +
                                            + +
                                            Package: grails.buildtestdata.builders
                                            + +

                                            [Groovy] Class ValidateableDataBuilder.Factory

                                            +
                                            +
                                            +
                                              +
                                              • grails.buildtestdata.builders.ValidateableDataBuilder.Factory +
                                              +
                                              + +
                                              + +
                                              +
                                                +
                                              • + + + + + + + + + + + + + + + + + + + + + +
                                                  + +
                                                • +

                                                  Methods Summary

                                                  +
                                                    + + + + + + + + + + + + + + + + + + + + +
                                                    Methods 
                                                    Type ParamsReturn TypeName and description
                                                    ValidateableDataBuilderbuild(java.lang.Class target)
                                                    booleansupports(java.lang.Class clazz)
                                                    +
                                                  +
                                                • + +
                                                • +

                                                  Inherited Methods Summary

                                                  +
                                                    + + + + + + + + + + + +
                                                    Inherited Methods 
                                                    Methods inherited from className
                                                    class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                    +
                                                  +
                                                • + +
                                                + +
                                              • +
                                              +
                                              + +
                                              +
                                                +
                                              • + + + + + + + + + + +
                                                  +
                                                • + + +

                                                  Constructor Detail

                                                  + + +
                                                    +
                                                  • +

                                                    ValidateableDataBuilder.Factory()

                                                    +

                                                    +
                                                  • +
                                                  + +
                                                • +
                                                + + + + + +
                                                  +
                                                • + + +

                                                  Method Detail

                                                  + + + + + +
                                                    +
                                                  • +

                                                    @java.lang.Override
                                                    boolean supports(java.lang.Class clazz)

                                                    +

                                                    +
                                                  • +
                                                  + +
                                                • +
                                                + +
                                              • +
                                              +
                                              + + + +
                                              + + + + + +
                                              + + +
                                              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.html b/6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.html new file mode 100644 index 0000000..227bb06 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/ValidateableDataBuilder.html @@ -0,0 +1,563 @@ + + + + + + + + + + + ValidateableDataBuilder (Groovy Documentation) + + + + + + + + + + +
                                              + + + + + +
                                              + + + + + +
                                              + +
                                              Package: grails.buildtestdata.builders
                                              + +

                                              [Groovy] Class ValidateableDataBuilder

                                              +
                                              +
                                              +
                                                +
                                                  • grails.buildtestdata.builders.ValidateableDataBuilder +
                                                  +
                                                  +
                                                    +
                                                  • + + + +
                                                    + +
                                                    @groovy.util.logging.Slf4j
                                                    +@groovy.transform.CompileStatic
                                                    +class ValidateableDataBuilder
                                                    +extends PogoDataBuilder
                                                    + +

                                                    DataBuilder to build test data for any

                                                    Validateable:
                                                    and command objects. not just Gorm persistence entities. + PersistentEntityDataBuilder extends this for finer grained Gorm test data generation

                                                    + +
                                                  • +
                                                  +
                                                  + +
                                                  +
                                                    +
                                                  • + + + + + + + + + + + + + + + + + + + + +
                                                      +
                                                    • +

                                                      Constructor Summary

                                                      +
                                                        + + + + + + + + + + +
                                                        Constructors 
                                                        Constructor and description
                                                        + ValidateableDataBuilder(java.lang.Class target)
                                                        +
                                                      +
                                                    • +
                                                    + + + + + + +
                                                  • +
                                                  +
                                                  + +
                                                  +
                                                    +
                                                  • + + + + + + +
                                                      +
                                                    • + + +

                                                      Property Detail

                                                      + + +
                                                        +
                                                      • +

                                                        static java.util.List<java.lang.String> CONSTRAINT_SORT_ORDER

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        static java.util.Map<java.lang.String, ? extends ConstraintHandler> defaultHandlers

                                                        +

                                                        +
                                                      • +
                                                      + + + + + +
                                                        +
                                                      • +

                                                        java.util.Set<java.lang.String> requiredPropertyNames

                                                        +

                                                        +
                                                      • +
                                                      + +
                                                    • +
                                                    + + + + + + +
                                                      +
                                                    • + + +

                                                      Constructor Detail

                                                      + + +
                                                        +
                                                      • +

                                                        ValidateableDataBuilder(java.lang.Class target)

                                                        +

                                                        +
                                                      • +
                                                      + +
                                                    • +
                                                    + + + + + +
                                                      +
                                                    • + + +

                                                      Method Detail

                                                      + + +
                                                        +
                                                      • +

                                                        @java.lang.Override
                                                        java.lang.Object build(java.util.Map args, DataBuilderContext ctx)

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        void exampleMetaConstraints(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrained, DataBuilderContext ctx)

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        java.util.Set<java.lang.String> findRequiredPropertyNames()

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        java.util.Map<java.lang.String, grails.gorm.validation.ConstrainedProperty> getConstraintsMap()

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        java.util.Set<java.lang.String> getConstraintsPropertyNames()

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        java.util.Set<java.lang.String> getFieldsToBuild(DataBuilderContext ctx)

                                                        +

                                                        combines the includes if it exists with the requiredPropertyNames and removed any data binding overrides + that would have already occurred from the ctx

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        boolean isRequiredConstrained(grails.gorm.validation.Constrained constrained)

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        boolean isSatisfied(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        void populateRequiredValues(java.lang.Object instance, DataBuilderContext ctx)

                                                        +

                                                        primary entry method for populating the entity data

                                                        Parameters:
                                                        instance
                                                        ctx

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        java.lang.Object satisfyConstrained(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrained, DataBuilderContext ctx)

                                                        +

                                                        +
                                                      • +
                                                      + + +
                                                        +
                                                      • +

                                                        java.util.List<grails.gorm.validation.Constraint> sortedConstraints(java.util.Collection<grails.gorm.validation.Constraint> appliedConstraints)

                                                        +

                                                        +
                                                      • +
                                                      + +
                                                    • +
                                                    + +
                                                  • +
                                                  +
                                                  + + + +
                                                  + + + + + +
                                                  + + +
                                                  + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/package-frame.html b/6.0.x/gapi/grails/buildtestdata/builders/package-frame.html new file mode 100644 index 0000000..9ef426c --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/package-frame.html @@ -0,0 +1,66 @@ + + + + + grails.buildtestdata.builders + + + + + + + + + + + + + + +
                                                  +

                                                  Interfaces

                                                  + +
                                                  + + + + + + + + + + + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/builders/package-summary.html b/6.0.x/gapi/grails/buildtestdata/builders/package-summary.html new file mode 100644 index 0000000..d00b32a --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/builders/package-summary.html @@ -0,0 +1,228 @@ + + + + + +grails.buildtestdata.builders (Groovy Documentation) + + + + + + + + + + + + + +
                                                  + + + + + + +
                                                  + + + + + +
                                                  +

                                                  Package grails.buildtestdata.builders

                                                  +
                                                  + + + +
                                                  + + +
                                                  + +
                                                  + + + + +
                                                  + +
                                                  + + + + + + + +
                                                  + + +
                                                  + + + + + +
                                                  + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/AbstractHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/AbstractHandler.html new file mode 100644 index 0000000..ee524a6 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/AbstractHandler.html @@ -0,0 +1,428 @@ + + + + + + + + + + + AbstractHandler (Groovy Documentation) + + + + + + + + + + +
                                                  + + + + + +
                                                  + + + + + +
                                                  + +
                                                  Package: grails.buildtestdata.handler
                                                  + +

                                                  [Groovy] Class AbstractHandler

                                                  +
                                                  +
                                                  +
                                                    +
                                                    • grails.buildtestdata.handler.AbstractHandler +
                                                    +
                                                    +
                                                      +
                                                    • + +
                                                      +
                                                      All Implemented Interfaces and Traits:
                                                      +
                                                      ConstraintHandler
                                                      +
                                                      + + + +
                                                      + +
                                                      @groovy.transform.CompileStatic
                                                      +abstract class AbstractHandler
                                                      +extends java.lang.Object
                                                      +implements ConstraintHandler
                                                      + +
                                                    • +
                                                    +
                                                    + +
                                                    +
                                                      +
                                                    • + + + + + + + + + + +
                                                        +
                                                      • +

                                                        Properties Summary

                                                        +
                                                          + + + + + + + + + + + + +
                                                          Properties 
                                                          TypeName and description
                                                          java.lang.Object value
                                                          +
                                                        +
                                                      • + +
                                                      + + + + + + + +
                                                        +
                                                      • +

                                                        Constructor Summary

                                                        +
                                                          + + + + + + + + + + +
                                                          Constructors 
                                                          Constructor and description
                                                          + AbstractHandler()
                                                          +
                                                        +
                                                      • +
                                                      + + + + +
                                                        + +
                                                      • +

                                                        Methods Summary

                                                        +
                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                          Methods 
                                                          Type ParamsReturn TypeName and description
                                                          java.lang.ObjectgetValue(java.lang.Object instance, java.lang.String property)
                                                          voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)
                                                          voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                          voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint)
                                                          voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                          voidhandle(java.lang.Object instance, java.lang.String propertyName)
                                                          voidsetValue(java.lang.Object instance, java.lang.String property, java.lang.Object value)
                                                          +
                                                        +
                                                      • + +
                                                      • +

                                                        Inherited Methods Summary

                                                        +
                                                          + + + + + + + + + + + +
                                                          Inherited Methods 
                                                          Methods inherited from className
                                                          class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                          +
                                                        +
                                                      • + +
                                                      + +
                                                    • +
                                                    +
                                                    + +
                                                    +
                                                      +
                                                    • + + + + + + +
                                                        +
                                                      • + + +

                                                        Property Detail

                                                        + + +
                                                          +
                                                        • +

                                                          java.lang.Object value

                                                          +

                                                          +
                                                        • +
                                                        + +
                                                      • +
                                                      + + + + + + +
                                                        +
                                                      • + + +

                                                        Constructor Detail

                                                        + + +
                                                          +
                                                        • +

                                                          AbstractHandler()

                                                          +

                                                          +
                                                        • +
                                                        + +
                                                      • +
                                                      + + + + + +
                                                        +
                                                      • + + +

                                                        Method Detail

                                                        + + +
                                                          +
                                                        • +

                                                          java.lang.Object getValue(java.lang.Object instance, java.lang.String property)

                                                          +

                                                          +
                                                        • +
                                                        + + +
                                                          +
                                                        • +

                                                          @java.lang.Override
                                                          void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                          +

                                                          +
                                                        • +
                                                        + + +
                                                          +
                                                        • +

                                                          void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                          +

                                                          +
                                                        • +
                                                        + + +
                                                          +
                                                        • +

                                                          void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint)

                                                          +

                                                          +
                                                        • +
                                                        + + +
                                                          +
                                                        • +

                                                          void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                          +

                                                          +
                                                        • +
                                                        + + +
                                                          +
                                                        • +

                                                          void handle(java.lang.Object instance, java.lang.String propertyName)

                                                          +

                                                          +
                                                        • +
                                                        + + +
                                                          +
                                                        • +

                                                          void setValue(java.lang.Object instance, java.lang.String property, java.lang.Object value)

                                                          +

                                                          +
                                                        • +
                                                        + +
                                                      • +
                                                      + +
                                                    • +
                                                    +
                                                    + + + +
                                                    + + + + + +
                                                    + + +
                                                    + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/AssociationMinSizeHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/AssociationMinSizeHandler.html new file mode 100644 index 0000000..76597d2 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/AssociationMinSizeHandler.html @@ -0,0 +1,359 @@ + + + + + + + + + + + AssociationMinSizeHandler (Groovy Documentation) + + + + + + + + + + +
                                                    + + + + + +
                                                    + + + + + +
                                                    + +
                                                    Package: grails.buildtestdata.handler
                                                    + +

                                                    [Groovy] Class AssociationMinSizeHandler

                                                    +
                                                    +
                                                    +
                                                      +
                                                          • grails.buildtestdata.handler.AssociationMinSizeHandler +
                                                          +
                                                          + +
                                                          + +
                                                          +
                                                            +
                                                          • + + + + + + + + + + +
                                                              +
                                                            • +

                                                              Properties Summary

                                                              +
                                                                + + + + + + + + + + + + +
                                                                Properties 
                                                                TypeName and description
                                                                org.grails.datastore.mapping.model.PersistentEntity persistentEntity
                                                                +
                                                              +
                                                            • + +
                                                            • +
                                                                + + + + + + + + + + + +
                                                                Inherited properties 
                                                                Properties inherited from classProperties
                                                                class AbstractHandlervalue
                                                                +
                                                              +
                                                            • + +
                                                            + + + + + + + +
                                                              +
                                                            • +

                                                              Constructor Summary

                                                              +
                                                                + + + + + + + + + + +
                                                                Constructors 
                                                                Constructor and description
                                                                + AssociationMinSizeHandler(org.grails.datastore.mapping.model.PersistentEntity persistentEntity)
                                                                +
                                                              +
                                                            • +
                                                            + + + + + + +
                                                          • +
                                                          +
                                                          + +
                                                          +
                                                            +
                                                          • + + + + + + +
                                                              +
                                                            • + + +

                                                              Property Detail

                                                              + + +
                                                                +
                                                              • +

                                                                org.grails.datastore.mapping.model.PersistentEntity persistentEntity

                                                                +

                                                                +
                                                              • +
                                                              + +
                                                            • +
                                                            + + + + + + +
                                                              +
                                                            • + + +

                                                              Constructor Detail

                                                              + + +
                                                                +
                                                              • +

                                                                AssociationMinSizeHandler(org.grails.datastore.mapping.model.PersistentEntity persistentEntity)

                                                                +

                                                                +
                                                              • +
                                                              + +
                                                            • +
                                                            + + + + + +
                                                              +
                                                            • + + +

                                                              Method Detail

                                                              + + +
                                                                +
                                                              • +

                                                                @java.lang.Override
                                                                void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrained, DataBuilderContext ctx, int minSize, java.lang.Object propertyValue)

                                                                +

                                                                +
                                                              • +
                                                              + +
                                                            • +
                                                            + +
                                                          • +
                                                          +
                                                          + + + +
                                                          + + + + + +
                                                          + + +
                                                          + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/BlankConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/BlankConstraintHandler.html new file mode 100644 index 0000000..9bbfd69 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/BlankConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + BlankConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                          + + + + + +
                                                          + + + + + +
                                                          + +
                                                          Package: grails.buildtestdata.handler
                                                          + +

                                                          [Groovy] Class BlankConstraintHandler

                                                          +
                                                          +
                                                          +
                                                            +
                                                              • grails.buildtestdata.handler.BlankConstraintHandler +
                                                              +
                                                              +
                                                                +
                                                              • + + + +
                                                                + +
                                                                @groovy.transform.CompileStatic
                                                                +class BlankConstraintHandler
                                                                +extends AbstractHandler
                                                                + +
                                                              • +
                                                              +
                                                              + +
                                                              +
                                                                +
                                                              • + + + + + + + + + + +
                                                                  +
                                                                • +
                                                                    + + + + + + + + + + + +
                                                                    Inherited properties 
                                                                    Properties inherited from classProperties
                                                                    class AbstractHandlervalue
                                                                    +
                                                                  +
                                                                • + +
                                                                + + + + + + + +
                                                                  +
                                                                • +

                                                                  Constructor Summary

                                                                  + +
                                                                • +
                                                                + + + + +
                                                                  + +
                                                                • +

                                                                  Methods Summary

                                                                  +
                                                                    + + + + + + + + + + + + + + +
                                                                    Methods 
                                                                    Type ParamsReturn TypeName and description
                                                                    voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                    +
                                                                  +
                                                                • + +
                                                                • +

                                                                  Inherited Methods Summary

                                                                  + +
                                                                • + +
                                                                + +
                                                              • +
                                                              +
                                                              + +
                                                              +
                                                                +
                                                              • + + + + + + + + + + +
                                                                  +
                                                                • + + +

                                                                  Constructor Detail

                                                                  + + +
                                                                    +
                                                                  • +

                                                                    BlankConstraintHandler()

                                                                    +

                                                                    +
                                                                  • +
                                                                  + +
                                                                • +
                                                                + + + + + +
                                                                  +
                                                                • + + +

                                                                  Method Detail

                                                                  + + +
                                                                    +
                                                                  • +

                                                                    @java.lang.Override
                                                                    void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                    +

                                                                    +
                                                                  • +
                                                                  + +
                                                                • +
                                                                + +
                                                              • +
                                                              +
                                                              + + + +
                                                              + + + + + +
                                                              + + +
                                                              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandler.html new file mode 100644 index 0000000..35b82fc --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandler.html @@ -0,0 +1,239 @@ + + + + + + + + + + + ConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                              + + + + + +
                                                              + + + + + +
                                                              + +
                                                              Package: grails.buildtestdata.handler
                                                              + +

                                                              [Groovy] Interface ConstraintHandler

                                                              +
                                                              +
                                                              +
                                                                + +
                                                              +
                                                              +
                                                                +
                                                              • + + +
                                                                + +
                                                                @groovy.transform.CompileStatic
                                                                +interface ConstraintHandler
                                                                + +
                                                              • +
                                                              +
                                                              + +
                                                              +
                                                                +
                                                              • + + + + + + + + + + + + + + + + + + +
                                                                  + +
                                                                • +

                                                                  Methods Summary

                                                                  +
                                                                    + + + + + + + + + + + + + + +
                                                                    Methods 
                                                                    Type ParamsReturn TypeName and description
                                                                    abstract voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)
                                                                    +
                                                                  +
                                                                • + +
                                                                + +
                                                              • +
                                                              +
                                                              + +
                                                              +
                                                                +
                                                              • + + + + + + + + + + + + + +
                                                                  +
                                                                • + + +

                                                                  Method Detail

                                                                  + + +
                                                                    +
                                                                  • +

                                                                    abstract void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                    +

                                                                    +
                                                                  • +
                                                                  + +
                                                                • +
                                                                + +
                                                              • +
                                                              +
                                                              + + + +
                                                              + + + + + +
                                                              + + +
                                                              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandlerException.html b/6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandlerException.html new file mode 100644 index 0000000..a6f146e --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/ConstraintHandlerException.html @@ -0,0 +1,259 @@ + + + + + + + + + + + ConstraintHandlerException (Groovy Documentation) + + + + + + + + + + +
                                                              + + + + + +
                                                              + + + + + +
                                                              + +
                                                              Package: grails.buildtestdata.handler
                                                              + +

                                                              [Groovy] Class ConstraintHandlerException

                                                              +
                                                              +
                                                              +
                                                                +
                                                                    • grails.buildtestdata.handler.ConstraintHandlerException +
                                                                    +
                                                                    +
                                                                      +
                                                                    • + + + +
                                                                      + +
                                                                      @groovy.transform.CompileStatic
                                                                      +class ConstraintHandlerException
                                                                      +extends java.lang.Exception
                                                                      + +
                                                                    • +
                                                                    +
                                                                    + +
                                                                    +
                                                                      +
                                                                    • + + + + + + + + + + + + + + + + +
                                                                        +
                                                                      • +

                                                                        Constructor Summary

                                                                        + +
                                                                      • +
                                                                      + + + + +
                                                                        + +
                                                                      • +

                                                                        Inherited Methods Summary

                                                                        +
                                                                          + + + + + + + + + + + +
                                                                          Inherited Methods 
                                                                          Methods inherited from className
                                                                          class java.lang.Exceptionjava.lang.Exception#printStackTrace(), java.lang.Exception#printStackTrace(java.io.PrintWriter), java.lang.Exception#printStackTrace(java.io.PrintStream), java.lang.Exception#getStackTrace(), java.lang.Exception#fillInStackTrace(), java.lang.Exception#getCause(), java.lang.Exception#initCause(java.lang.Throwable), java.lang.Exception#toString(), java.lang.Exception#getMessage(), java.lang.Exception#getSuppressed(), java.lang.Exception#getLocalizedMessage(), java.lang.Exception#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.Exception#addSuppressed(java.lang.Throwable), java.lang.Exception#wait(long, int), java.lang.Exception#wait(), java.lang.Exception#wait(long), java.lang.Exception#equals(java.lang.Object), java.lang.Exception#hashCode(), java.lang.Exception#getClass(), java.lang.Exception#notify(), java.lang.Exception#notifyAll()
                                                                          +
                                                                        +
                                                                      • + +
                                                                      + +
                                                                    • +
                                                                    +
                                                                    + +
                                                                    +
                                                                      +
                                                                    • + + + + + + + + + + +
                                                                        +
                                                                      • + + +

                                                                        Constructor Detail

                                                                        + + +
                                                                          +
                                                                        • +

                                                                          ConstraintHandlerException(java.lang.String message)

                                                                          +

                                                                          +
                                                                        • +
                                                                        + +
                                                                      • +
                                                                      + + + + +
                                                                    • +
                                                                    +
                                                                    + + + +
                                                                    + + + + + +
                                                                    + + +
                                                                    + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/CreditCardConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/CreditCardConstraintHandler.html new file mode 100644 index 0000000..44352e0 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/CreditCardConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + CreditCardConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                    + + + + + +
                                                                    + + + + + +
                                                                    + +
                                                                    Package: grails.buildtestdata.handler
                                                                    + +

                                                                    [Groovy] Class CreditCardConstraintHandler

                                                                    +
                                                                    +
                                                                    +
                                                                      +
                                                                        • grails.buildtestdata.handler.CreditCardConstraintHandler +
                                                                        +
                                                                        +
                                                                          +
                                                                        • + + + +
                                                                          + +
                                                                          @groovy.transform.CompileStatic
                                                                          +class CreditCardConstraintHandler
                                                                          +extends AbstractHandler
                                                                          + +
                                                                        • +
                                                                        +
                                                                        + +
                                                                        +
                                                                          +
                                                                        • + + + + + + + + + + +
                                                                            +
                                                                          • +
                                                                              + + + + + + + + + + + +
                                                                              Inherited properties 
                                                                              Properties inherited from classProperties
                                                                              class AbstractHandlervalue
                                                                              +
                                                                            +
                                                                          • + +
                                                                          + + + + + + + + + + + + +
                                                                            + +
                                                                          • +

                                                                            Methods Summary

                                                                            +
                                                                              + + + + + + + + + + + + + + +
                                                                              Methods 
                                                                              Type ParamsReturn TypeName and description
                                                                              voidhandle(java.lang.Object instance, java.lang.String propertyName)
                                                                              +
                                                                            +
                                                                          • + +
                                                                          • +

                                                                            Inherited Methods Summary

                                                                            + +
                                                                          • + +
                                                                          + +
                                                                        • +
                                                                        +
                                                                        + +
                                                                        +
                                                                          +
                                                                        • + + + + + + + + + + +
                                                                            +
                                                                          • + + +

                                                                            Constructor Detail

                                                                            + + +
                                                                              +
                                                                            • +

                                                                              CreditCardConstraintHandler()

                                                                              +

                                                                              +
                                                                            • +
                                                                            + +
                                                                          • +
                                                                          + + + + + +
                                                                            +
                                                                          • + + +

                                                                            Method Detail

                                                                            + + +
                                                                              +
                                                                            • +

                                                                              @java.lang.Override
                                                                              void handle(java.lang.Object instance, java.lang.String propertyName)

                                                                              +

                                                                              +
                                                                            • +
                                                                            + +
                                                                          • +
                                                                          + +
                                                                        • +
                                                                        +
                                                                        + + + +
                                                                        + + + + + +
                                                                        + + +
                                                                        + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/EmailConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/EmailConstraintHandler.html new file mode 100644 index 0000000..b32745f --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/EmailConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + EmailConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                        + + + + + +
                                                                        + + + + + +
                                                                        + +
                                                                        Package: grails.buildtestdata.handler
                                                                        + +

                                                                        [Groovy] Class EmailConstraintHandler

                                                                        +
                                                                        +
                                                                        +
                                                                          +
                                                                            • grails.buildtestdata.handler.EmailConstraintHandler +
                                                                            +
                                                                            +
                                                                              +
                                                                            • + + + +
                                                                              + +
                                                                              @groovy.transform.CompileStatic
                                                                              +class EmailConstraintHandler
                                                                              +extends AbstractHandler
                                                                              + +
                                                                            • +
                                                                            +
                                                                            + +
                                                                            +
                                                                              +
                                                                            • + + + + + + + + + + +
                                                                                +
                                                                              • +
                                                                                  + + + + + + + + + + + +
                                                                                  Inherited properties 
                                                                                  Properties inherited from classProperties
                                                                                  class AbstractHandlervalue
                                                                                  +
                                                                                +
                                                                              • + +
                                                                              + + + + + + + +
                                                                                +
                                                                              • +

                                                                                Constructor Summary

                                                                                + +
                                                                              • +
                                                                              + + + + +
                                                                                + +
                                                                              • +

                                                                                Methods Summary

                                                                                +
                                                                                  + + + + + + + + + + + + + + +
                                                                                  Methods 
                                                                                  Type ParamsReturn TypeName and description
                                                                                  voidhandle(java.lang.Object instance, java.lang.String propertyName)
                                                                                  +
                                                                                +
                                                                              • + +
                                                                              • +

                                                                                Inherited Methods Summary

                                                                                + +
                                                                              • + +
                                                                              + +
                                                                            • +
                                                                            +
                                                                            + +
                                                                            +
                                                                              +
                                                                            • + + + + + + + + + + +
                                                                                +
                                                                              • + + +

                                                                                Constructor Detail

                                                                                + + +
                                                                                  +
                                                                                • +

                                                                                  EmailConstraintHandler()

                                                                                  +

                                                                                  +
                                                                                • +
                                                                                + +
                                                                              • +
                                                                              + + + + + +
                                                                                +
                                                                              • + + +

                                                                                Method Detail

                                                                                + + +
                                                                                  +
                                                                                • +

                                                                                  @java.lang.Override
                                                                                  void handle(java.lang.Object instance, java.lang.String propertyName)

                                                                                  +

                                                                                  +
                                                                                • +
                                                                                + +
                                                                              • +
                                                                              + +
                                                                            • +
                                                                            +
                                                                            + + + +
                                                                            + + + + + +
                                                                            + + +
                                                                            + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/ExampleConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/ExampleConstraintHandler.html new file mode 100644 index 0000000..6da1071 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/ExampleConstraintHandler.html @@ -0,0 +1,333 @@ + + + + + + + + + + + ExampleConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                            + + + + + +
                                                                            + + + + + +
                                                                            + +
                                                                            Package: grails.buildtestdata.handler
                                                                            + +

                                                                            [Groovy] Class ExampleConstraintHandler

                                                                            +
                                                                            +
                                                                            +
                                                                              +
                                                                                • grails.buildtestdata.handler.ExampleConstraintHandler +
                                                                                +
                                                                                +
                                                                                  +
                                                                                • + + + +
                                                                                  + +
                                                                                  @groovy.util.logging.Slf4j
                                                                                  +@groovy.transform.CompileStatic
                                                                                  +class ExampleConstraintHandler
                                                                                  +extends AbstractHandler
                                                                                  + +
                                                                                • +
                                                                                +
                                                                                + +
                                                                                +
                                                                                  +
                                                                                • + + + + + + + + + + +
                                                                                    +
                                                                                  • +
                                                                                      + + + + + + + + + + + +
                                                                                      Inherited properties 
                                                                                      Properties inherited from classProperties
                                                                                      class AbstractHandlervalue
                                                                                      +
                                                                                    +
                                                                                  • + +
                                                                                  + + + + + + + +
                                                                                    +
                                                                                  • +

                                                                                    Constructor Summary

                                                                                    + +
                                                                                  • +
                                                                                  + + + + +
                                                                                    + +
                                                                                  • +

                                                                                    Methods Summary

                                                                                    +
                                                                                      + + + + + + + + + + + + + + + + + + + + +
                                                                                      Methods 
                                                                                      Type ParamsReturn TypeName and description
                                                                                      java.lang.ObjectgetExampleContraintValue(java.lang.Object constrainedProperty)
                                                                                      voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)
                                                                                      +
                                                                                    +
                                                                                  • + +
                                                                                  • +

                                                                                    Inherited Methods Summary

                                                                                    + +
                                                                                  • + +
                                                                                  + +
                                                                                • +
                                                                                +
                                                                                + +
                                                                                +
                                                                                  +
                                                                                • + + + + + + + + + + +
                                                                                    +
                                                                                  • + + +

                                                                                    Constructor Detail

                                                                                    + + +
                                                                                      +
                                                                                    • +

                                                                                      ExampleConstraintHandler()

                                                                                      +

                                                                                      +
                                                                                    • +
                                                                                    + +
                                                                                  • +
                                                                                  + + + + + +
                                                                                    +
                                                                                  • + + +

                                                                                    Method Detail

                                                                                    + + +
                                                                                      +
                                                                                    • +

                                                                                      @groovy.transform.CompileDynamic
                                                                                      java.lang.Object getExampleContraintValue(java.lang.Object constrainedProperty)

                                                                                      +

                                                                                      +
                                                                                    • +
                                                                                    + + +
                                                                                      +
                                                                                    • +

                                                                                      @java.lang.Override
                                                                                      void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                      +

                                                                                      +
                                                                                    • +
                                                                                    + +
                                                                                  • +
                                                                                  + +
                                                                                • +
                                                                                +
                                                                                + + + +
                                                                                + + + + + +
                                                                                + + +
                                                                                + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/InListConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/InListConstraintHandler.html new file mode 100644 index 0000000..eae6e92 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/InListConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + InListConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                + + + + + +
                                                                                + + + + + +
                                                                                + +
                                                                                Package: grails.buildtestdata.handler
                                                                                + +

                                                                                [Groovy] Class InListConstraintHandler

                                                                                +
                                                                                +
                                                                                +
                                                                                  +
                                                                                    • grails.buildtestdata.handler.InListConstraintHandler +
                                                                                    +
                                                                                    +
                                                                                      +
                                                                                    • + + + +
                                                                                      + +
                                                                                      @groovy.transform.CompileStatic
                                                                                      +class InListConstraintHandler
                                                                                      +extends AbstractHandler
                                                                                      + +
                                                                                    • +
                                                                                    +
                                                                                    + +
                                                                                    +
                                                                                      +
                                                                                    • + + + + + + + + + + +
                                                                                        +
                                                                                      • +
                                                                                          + + + + + + + + + + + +
                                                                                          Inherited properties 
                                                                                          Properties inherited from classProperties
                                                                                          class AbstractHandlervalue
                                                                                          +
                                                                                        +
                                                                                      • + +
                                                                                      + + + + + + + +
                                                                                        +
                                                                                      • +

                                                                                        Constructor Summary

                                                                                        + +
                                                                                      • +
                                                                                      + + + + +
                                                                                        + +
                                                                                      • +

                                                                                        Methods Summary

                                                                                        +
                                                                                          + + + + + + + + + + + + + + +
                                                                                          Methods 
                                                                                          Type ParamsReturn TypeName and description
                                                                                          voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                          +
                                                                                        +
                                                                                      • + +
                                                                                      • +

                                                                                        Inherited Methods Summary

                                                                                        + +
                                                                                      • + +
                                                                                      + +
                                                                                    • +
                                                                                    +
                                                                                    + +
                                                                                    +
                                                                                      +
                                                                                    • + + + + + + + + + + +
                                                                                        +
                                                                                      • + + +

                                                                                        Constructor Detail

                                                                                        + + +
                                                                                          +
                                                                                        • +

                                                                                          InListConstraintHandler()

                                                                                          +

                                                                                          +
                                                                                        • +
                                                                                        + +
                                                                                      • +
                                                                                      + + + + + +
                                                                                        +
                                                                                      • + + +

                                                                                        Method Detail

                                                                                        + + +
                                                                                          +
                                                                                        • +

                                                                                          @java.lang.Override
                                                                                          void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                          +

                                                                                          +
                                                                                        • +
                                                                                        + +
                                                                                      • +
                                                                                      + +
                                                                                    • +
                                                                                    +
                                                                                    + + + +
                                                                                    + + + + + +
                                                                                    + + +
                                                                                    + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/MatchesConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/MatchesConstraintHandler.html new file mode 100644 index 0000000..3d19997 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/MatchesConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + MatchesConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                    + + + + + +
                                                                                    + + + + + +
                                                                                    + +
                                                                                    Package: grails.buildtestdata.handler
                                                                                    + +

                                                                                    [Groovy] Class MatchesConstraintHandler

                                                                                    +
                                                                                    +
                                                                                    +
                                                                                      +
                                                                                        • grails.buildtestdata.handler.MatchesConstraintHandler +
                                                                                        +
                                                                                        +
                                                                                          +
                                                                                        • + + + +
                                                                                          + +
                                                                                          @groovy.transform.CompileStatic
                                                                                          +class MatchesConstraintHandler
                                                                                          +extends AbstractHandler
                                                                                          + +
                                                                                        • +
                                                                                        +
                                                                                        + +
                                                                                        +
                                                                                          +
                                                                                        • + + + + + + + + + + +
                                                                                            +
                                                                                          • +
                                                                                              + + + + + + + + + + + +
                                                                                              Inherited properties 
                                                                                              Properties inherited from classProperties
                                                                                              class AbstractHandlervalue
                                                                                              +
                                                                                            +
                                                                                          • + +
                                                                                          + + + + + + + +
                                                                                            +
                                                                                          • +

                                                                                            Constructor Summary

                                                                                            + +
                                                                                          • +
                                                                                          + + + + +
                                                                                            + +
                                                                                          • +

                                                                                            Methods Summary

                                                                                            +
                                                                                              + + + + + + + + + + + + + + +
                                                                                              Methods 
                                                                                              Type ParamsReturn TypeName and description
                                                                                              voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                              +
                                                                                            +
                                                                                          • + +
                                                                                          • +

                                                                                            Inherited Methods Summary

                                                                                            + +
                                                                                          • + +
                                                                                          + +
                                                                                        • +
                                                                                        +
                                                                                        + +
                                                                                        +
                                                                                          +
                                                                                        • + + + + + + + + + + +
                                                                                            +
                                                                                          • + + +

                                                                                            Constructor Detail

                                                                                            + + +
                                                                                              +
                                                                                            • +

                                                                                              MatchesConstraintHandler()

                                                                                              +

                                                                                              +
                                                                                            • +
                                                                                            + +
                                                                                          • +
                                                                                          + + + + + +
                                                                                            +
                                                                                          • + + +

                                                                                            Method Detail

                                                                                            + + +
                                                                                              +
                                                                                            • +

                                                                                              @java.lang.Override
                                                                                              void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                              +

                                                                                              +
                                                                                            • +
                                                                                            + +
                                                                                          • +
                                                                                          + +
                                                                                        • +
                                                                                        +
                                                                                        + + + +
                                                                                        + + + + + +
                                                                                        + + +
                                                                                        + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/MaxConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/MaxConstraintHandler.html new file mode 100644 index 0000000..61a00ce --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/MaxConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + MaxConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                        + + + + + +
                                                                                        + + + + + +
                                                                                        + +
                                                                                        Package: grails.buildtestdata.handler
                                                                                        + +

                                                                                        [Groovy] Class MaxConstraintHandler

                                                                                        +
                                                                                        +
                                                                                        +
                                                                                          +
                                                                                            • grails.buildtestdata.handler.MaxConstraintHandler +
                                                                                            +
                                                                                            +
                                                                                              +
                                                                                            • + + + +
                                                                                              + +
                                                                                              @groovy.transform.CompileStatic
                                                                                              +class MaxConstraintHandler
                                                                                              +extends AbstractHandler
                                                                                              + +
                                                                                            • +
                                                                                            +
                                                                                            + +
                                                                                            +
                                                                                              +
                                                                                            • + + + + + + + + + + +
                                                                                                +
                                                                                              • +
                                                                                                  + + + + + + + + + + + +
                                                                                                  Inherited properties 
                                                                                                  Properties inherited from classProperties
                                                                                                  class AbstractHandlervalue
                                                                                                  +
                                                                                                +
                                                                                              • + +
                                                                                              + + + + + + + +
                                                                                                +
                                                                                              • +

                                                                                                Constructor Summary

                                                                                                + +
                                                                                              • +
                                                                                              + + + + +
                                                                                                + +
                                                                                              • +

                                                                                                Methods Summary

                                                                                                +
                                                                                                  + + + + + + + + + + + + + + +
                                                                                                  Methods 
                                                                                                  Type ParamsReturn TypeName and description
                                                                                                  voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                                  +
                                                                                                +
                                                                                              • + +
                                                                                              • +

                                                                                                Inherited Methods Summary

                                                                                                + +
                                                                                              • + +
                                                                                              + +
                                                                                            • +
                                                                                            +
                                                                                            + +
                                                                                            +
                                                                                              +
                                                                                            • + + + + + + + + + + +
                                                                                                +
                                                                                              • + + +

                                                                                                Constructor Detail

                                                                                                + + +
                                                                                                  +
                                                                                                • +

                                                                                                  MaxConstraintHandler()

                                                                                                  +

                                                                                                  +
                                                                                                • +
                                                                                                + +
                                                                                              • +
                                                                                              + + + + + +
                                                                                                +
                                                                                              • + + +

                                                                                                Method Detail

                                                                                                + + +
                                                                                                  +
                                                                                                • +

                                                                                                  @java.lang.Override
                                                                                                  void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                                  +

                                                                                                  +
                                                                                                • +
                                                                                                + +
                                                                                              • +
                                                                                              + +
                                                                                            • +
                                                                                            +
                                                                                            + + + +
                                                                                            + + + + + +
                                                                                            + + +
                                                                                            + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/MaxSizeConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/MaxSizeConstraintHandler.html new file mode 100644 index 0000000..a3da9e7 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/MaxSizeConstraintHandler.html @@ -0,0 +1,332 @@ + + + + + + + + + + + MaxSizeConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                            + + + + + +
                                                                                            + + + + + +
                                                                                            + +
                                                                                            Package: grails.buildtestdata.handler
                                                                                            + +

                                                                                            [Groovy] Class MaxSizeConstraintHandler

                                                                                            +
                                                                                            +
                                                                                            +
                                                                                              +
                                                                                                • grails.buildtestdata.handler.MaxSizeConstraintHandler +
                                                                                                +
                                                                                                +
                                                                                                  +
                                                                                                • + + + +
                                                                                                  + +
                                                                                                  @groovy.transform.CompileStatic
                                                                                                  +class MaxSizeConstraintHandler
                                                                                                  +extends AbstractHandler
                                                                                                  + +
                                                                                                • +
                                                                                                +
                                                                                                + +
                                                                                                +
                                                                                                  +
                                                                                                • + + + + + + + + + + +
                                                                                                    +
                                                                                                  • +
                                                                                                      + + + + + + + + + + + +
                                                                                                      Inherited properties 
                                                                                                      Properties inherited from classProperties
                                                                                                      class AbstractHandlervalue
                                                                                                      +
                                                                                                    +
                                                                                                  • + +
                                                                                                  + + + + + + + +
                                                                                                    +
                                                                                                  • +

                                                                                                    Constructor Summary

                                                                                                    + +
                                                                                                  • +
                                                                                                  + + + + +
                                                                                                    + +
                                                                                                  • +

                                                                                                    Methods Summary

                                                                                                    +
                                                                                                      + + + + + + + + + + + + + + + + + + + + +
                                                                                                      Methods 
                                                                                                      Type ParamsReturn TypeName and description
                                                                                                      voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)
                                                                                                      voidpad(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx, int maxSize)
                                                                                                      +
                                                                                                    +
                                                                                                  • + +
                                                                                                  • +

                                                                                                    Inherited Methods Summary

                                                                                                    + +
                                                                                                  • + +
                                                                                                  + +
                                                                                                • +
                                                                                                +
                                                                                                + +
                                                                                                +
                                                                                                  +
                                                                                                • + + + + + + + + + + +
                                                                                                    +
                                                                                                  • + + +

                                                                                                    Constructor Detail

                                                                                                    + + +
                                                                                                      +
                                                                                                    • +

                                                                                                      MaxSizeConstraintHandler()

                                                                                                      +

                                                                                                      +
                                                                                                    • +
                                                                                                    + +
                                                                                                  • +
                                                                                                  + + + + + +
                                                                                                    +
                                                                                                  • + + +

                                                                                                    Method Detail

                                                                                                    + + +
                                                                                                      +
                                                                                                    • +

                                                                                                      @java.lang.Override
                                                                                                      void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                                      +

                                                                                                      +
                                                                                                    • +
                                                                                                    + + +
                                                                                                      +
                                                                                                    • +

                                                                                                      void pad(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx, int maxSize)

                                                                                                      +

                                                                                                      +
                                                                                                    • +
                                                                                                    + +
                                                                                                  • +
                                                                                                  + +
                                                                                                • +
                                                                                                +
                                                                                                + + + +
                                                                                                + + + + + +
                                                                                                + + +
                                                                                                + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/MinConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/MinConstraintHandler.html new file mode 100644 index 0000000..3337add --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/MinConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + MinConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                + + + + + +
                                                                                                + + + + + +
                                                                                                + +
                                                                                                Package: grails.buildtestdata.handler
                                                                                                + +

                                                                                                [Groovy] Class MinConstraintHandler

                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                  +
                                                                                                    • grails.buildtestdata.handler.MinConstraintHandler +
                                                                                                    +
                                                                                                    +
                                                                                                      +
                                                                                                    • + + + +
                                                                                                      + +
                                                                                                      @groovy.transform.CompileStatic
                                                                                                      +class MinConstraintHandler
                                                                                                      +extends AbstractHandler
                                                                                                      + +
                                                                                                    • +
                                                                                                    +
                                                                                                    + +
                                                                                                    +
                                                                                                      +
                                                                                                    • + + + + + + + + + + +
                                                                                                        +
                                                                                                      • +
                                                                                                          + + + + + + + + + + + +
                                                                                                          Inherited properties 
                                                                                                          Properties inherited from classProperties
                                                                                                          class AbstractHandlervalue
                                                                                                          +
                                                                                                        +
                                                                                                      • + +
                                                                                                      + + + + + + + +
                                                                                                        +
                                                                                                      • +

                                                                                                        Constructor Summary

                                                                                                        + +
                                                                                                      • +
                                                                                                      + + + + +
                                                                                                        + +
                                                                                                      • +

                                                                                                        Methods Summary

                                                                                                        +
                                                                                                          + + + + + + + + + + + + + + +
                                                                                                          Methods 
                                                                                                          Type ParamsReturn TypeName and description
                                                                                                          voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                                          +
                                                                                                        +
                                                                                                      • + +
                                                                                                      • +

                                                                                                        Inherited Methods Summary

                                                                                                        + +
                                                                                                      • + +
                                                                                                      + +
                                                                                                    • +
                                                                                                    +
                                                                                                    + +
                                                                                                    +
                                                                                                      +
                                                                                                    • + + + + + + + + + + +
                                                                                                        +
                                                                                                      • + + +

                                                                                                        Constructor Detail

                                                                                                        + + +
                                                                                                          +
                                                                                                        • +

                                                                                                          MinConstraintHandler()

                                                                                                          +

                                                                                                          +
                                                                                                        • +
                                                                                                        + +
                                                                                                      • +
                                                                                                      + + + + + +
                                                                                                        +
                                                                                                      • + + +

                                                                                                        Method Detail

                                                                                                        + + +
                                                                                                          +
                                                                                                        • +

                                                                                                          @java.lang.Override
                                                                                                          void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                                          +

                                                                                                          +
                                                                                                        • +
                                                                                                        + +
                                                                                                      • +
                                                                                                      + +
                                                                                                    • +
                                                                                                    +
                                                                                                    + + + +
                                                                                                    + + + + + +
                                                                                                    + + +
                                                                                                    + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/MinSizeConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/MinSizeConstraintHandler.html new file mode 100644 index 0000000..2105e4b --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/MinSizeConstraintHandler.html @@ -0,0 +1,332 @@ + + + + + + + + + + + MinSizeConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                    + + + + + +
                                                                                                    + + + + + +
                                                                                                    + +
                                                                                                    Package: grails.buildtestdata.handler
                                                                                                    + +

                                                                                                    [Groovy] Class MinSizeConstraintHandler

                                                                                                    +
                                                                                                    +
                                                                                                    +
                                                                                                      +
                                                                                                        • grails.buildtestdata.handler.MinSizeConstraintHandler +
                                                                                                        +
                                                                                                        +
                                                                                                          +
                                                                                                        • + + + +
                                                                                                          + +
                                                                                                          @groovy.transform.CompileStatic
                                                                                                          +class MinSizeConstraintHandler
                                                                                                          +extends AbstractHandler
                                                                                                          + +
                                                                                                        • +
                                                                                                        +
                                                                                                        + +
                                                                                                        +
                                                                                                          +
                                                                                                        • + + + + + + + + + + +
                                                                                                            +
                                                                                                          • +
                                                                                                              + + + + + + + + + + + +
                                                                                                              Inherited properties 
                                                                                                              Properties inherited from classProperties
                                                                                                              class AbstractHandlervalue
                                                                                                              +
                                                                                                            +
                                                                                                          • + +
                                                                                                          + + + + + + + +
                                                                                                            +
                                                                                                          • +

                                                                                                            Constructor Summary

                                                                                                            + +
                                                                                                          • +
                                                                                                          + + + + +
                                                                                                            + +
                                                                                                          • +

                                                                                                            Methods Summary

                                                                                                            +
                                                                                                              + + + + + + + + + + + + + + + + + + + + +
                                                                                                              Methods 
                                                                                                              Type ParamsReturn TypeName and description
                                                                                                              voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)
                                                                                                              voidhandle(java.lang.Object domain, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrained, DataBuilderContext ctx, int minSize, java.lang.Object propertyValue)
                                                                                                              +
                                                                                                            +
                                                                                                          • + +
                                                                                                          • +

                                                                                                            Inherited Methods Summary

                                                                                                            + +
                                                                                                          • + +
                                                                                                          + +
                                                                                                        • +
                                                                                                        +
                                                                                                        + +
                                                                                                        +
                                                                                                          +
                                                                                                        • + + + + + + + + + + +
                                                                                                            +
                                                                                                          • + + +

                                                                                                            Constructor Detail

                                                                                                            + + +
                                                                                                              +
                                                                                                            • +

                                                                                                              MinSizeConstraintHandler()

                                                                                                              +

                                                                                                              +
                                                                                                            • +
                                                                                                            + +
                                                                                                          • +
                                                                                                          + + + + + +
                                                                                                            +
                                                                                                          • + + +

                                                                                                            Method Detail

                                                                                                            + + +
                                                                                                              +
                                                                                                            • +

                                                                                                              @java.lang.Override
                                                                                                              void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                                              +

                                                                                                              +
                                                                                                            • +
                                                                                                            + + +
                                                                                                              +
                                                                                                            • +

                                                                                                              void handle(java.lang.Object domain, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrained, DataBuilderContext ctx, int minSize, java.lang.Object propertyValue)

                                                                                                              +

                                                                                                              +
                                                                                                            • +
                                                                                                            + +
                                                                                                          • +
                                                                                                          + +
                                                                                                        • +
                                                                                                        +
                                                                                                        + + + +
                                                                                                        + + + + + +
                                                                                                        + + +
                                                                                                        + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/NullableConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/NullableConstraintHandler.html new file mode 100644 index 0000000..f96a49a --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/NullableConstraintHandler.html @@ -0,0 +1,347 @@ + + + + + + + + + + + NullableConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                        + + + + + +
                                                                                                        + + + + + +
                                                                                                        + +
                                                                                                        Package: grails.buildtestdata.handler
                                                                                                        + +

                                                                                                        [Groovy] Class NullableConstraintHandler

                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                          +
                                                                                                            • grails.buildtestdata.handler.NullableConstraintHandler +
                                                                                                            +
                                                                                                            +
                                                                                                              +
                                                                                                            • + + + +
                                                                                                              + +
                                                                                                              @groovy.util.logging.Slf4j
                                                                                                              +@groovy.transform.CompileStatic
                                                                                                              +class NullableConstraintHandler
                                                                                                              +extends AbstractHandler
                                                                                                              + +
                                                                                                            • +
                                                                                                            +
                                                                                                            + +
                                                                                                            +
                                                                                                              +
                                                                                                            • + + + + + + + + + + +
                                                                                                                +
                                                                                                              • +
                                                                                                                  + + + + + + + + + + + +
                                                                                                                  Inherited properties 
                                                                                                                  Properties inherited from classProperties
                                                                                                                  class AbstractHandlervalue
                                                                                                                  +
                                                                                                                +
                                                                                                              • + +
                                                                                                              + + + + + + + +
                                                                                                                +
                                                                                                              • +

                                                                                                                Constructor Summary

                                                                                                                + +
                                                                                                              • +
                                                                                                              + + + + +
                                                                                                                + +
                                                                                                              • +

                                                                                                                Methods Summary

                                                                                                                +
                                                                                                                  + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                  Methods 
                                                                                                                  Type ParamsReturn TypeName and description
                                                                                                                  java.lang.ObjectdetermineBasicValue(java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                                                  java.lang.ObjectdetermineNonStandardValue(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)
                                                                                                                  voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)
                                                                                                                  +
                                                                                                                +
                                                                                                              • + +
                                                                                                              • +

                                                                                                                Inherited Methods Summary

                                                                                                                + +
                                                                                                              • + +
                                                                                                              + +
                                                                                                            • +
                                                                                                            +
                                                                                                            + +
                                                                                                            +
                                                                                                              +
                                                                                                            • + + + + + + + + + + +
                                                                                                                +
                                                                                                              • + + +

                                                                                                                Constructor Detail

                                                                                                                + + +
                                                                                                                  +
                                                                                                                • +

                                                                                                                  NullableConstraintHandler()

                                                                                                                  +

                                                                                                                  +
                                                                                                                • +
                                                                                                                + +
                                                                                                              • +
                                                                                                              + + + + + +
                                                                                                                +
                                                                                                              • + + +

                                                                                                                Method Detail

                                                                                                                + + +
                                                                                                                  +
                                                                                                                • +

                                                                                                                  java.lang.Object determineBasicValue(java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                                                  +

                                                                                                                  +
                                                                                                                • +
                                                                                                                + + +
                                                                                                                  +
                                                                                                                • +

                                                                                                                  java.lang.Object determineNonStandardValue(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                                                  +

                                                                                                                  +
                                                                                                                • +
                                                                                                                + + +
                                                                                                                  +
                                                                                                                • +

                                                                                                                  @java.lang.Override
                                                                                                                  void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                                                  +

                                                                                                                  +
                                                                                                                • +
                                                                                                                + +
                                                                                                              • +
                                                                                                              + +
                                                                                                            • +
                                                                                                            +
                                                                                                            + + + +
                                                                                                            + + + + + +
                                                                                                            + + +
                                                                                                            + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/PersistentEntityNullableConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/PersistentEntityNullableConstraintHandler.html new file mode 100644 index 0000000..73195b6 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/PersistentEntityNullableConstraintHandler.html @@ -0,0 +1,386 @@ + + + + + + + + + + + PersistentEntityNullableConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                            + + + + + +
                                                                                                            + + + + + +
                                                                                                            + +
                                                                                                            Package: grails.buildtestdata.handler
                                                                                                            + +

                                                                                                            [Groovy] Class PersistentEntityNullableConstraintHandler

                                                                                                            +
                                                                                                            +
                                                                                                            +
                                                                                                              +
                                                                                                                  • grails.buildtestdata.handler.PersistentEntityNullableConstraintHandler +
                                                                                                                  +
                                                                                                                  +
                                                                                                                    +
                                                                                                                  • + + + +
                                                                                                                    + +
                                                                                                                    @groovy.transform.CompileStatic
                                                                                                                    +class PersistentEntityNullableConstraintHandler
                                                                                                                    +extends NullableConstraintHandler
                                                                                                                    + +
                                                                                                                  • +
                                                                                                                  +
                                                                                                                  + +
                                                                                                                  +
                                                                                                                    +
                                                                                                                  • + + + + + + + + + + +
                                                                                                                      +
                                                                                                                    • +

                                                                                                                      Properties Summary

                                                                                                                      +
                                                                                                                        + + + + + + + + + + + + + + + + + +
                                                                                                                        Properties 
                                                                                                                        TypeName and description
                                                                                                                        org.grails.datastore.mapping.model.MappingContext mappingContext
                                                                                                                        org.grails.datastore.mapping.model.PersistentEntity persistentEntity
                                                                                                                        +
                                                                                                                      +
                                                                                                                    • + +
                                                                                                                    • +
                                                                                                                        + + + + + + + + + + + +
                                                                                                                        Inherited properties 
                                                                                                                        Properties inherited from classProperties
                                                                                                                        class AbstractHandlervalue
                                                                                                                        +
                                                                                                                      +
                                                                                                                    • + +
                                                                                                                    + + + + + + + +
                                                                                                                      +
                                                                                                                    • +

                                                                                                                      Constructor Summary

                                                                                                                      +
                                                                                                                        + + + + + + + + + + +
                                                                                                                        Constructors 
                                                                                                                        Constructor and description
                                                                                                                        + PersistentEntityNullableConstraintHandler(org.grails.datastore.mapping.model.PersistentEntity persistentEntity, org.grails.datastore.mapping.model.MappingContext mappingContext)
                                                                                                                        +
                                                                                                                      +
                                                                                                                    • +
                                                                                                                    + + + + + + +
                                                                                                                  • +
                                                                                                                  +
                                                                                                                  + +
                                                                                                                  +
                                                                                                                    +
                                                                                                                  • + + + + + + +
                                                                                                                      +
                                                                                                                    • + + +

                                                                                                                      Property Detail

                                                                                                                      + + +
                                                                                                                        +
                                                                                                                      • +

                                                                                                                        org.grails.datastore.mapping.model.MappingContext mappingContext

                                                                                                                        +

                                                                                                                        +
                                                                                                                      • +
                                                                                                                      + + +
                                                                                                                        +
                                                                                                                      • +

                                                                                                                        org.grails.datastore.mapping.model.PersistentEntity persistentEntity

                                                                                                                        +

                                                                                                                        +
                                                                                                                      • +
                                                                                                                      + +
                                                                                                                    • +
                                                                                                                    + + + + + + +
                                                                                                                      +
                                                                                                                    • + + +

                                                                                                                      Constructor Detail

                                                                                                                      + + +
                                                                                                                        +
                                                                                                                      • +

                                                                                                                        PersistentEntityNullableConstraintHandler(org.grails.datastore.mapping.model.PersistentEntity persistentEntity, org.grails.datastore.mapping.model.MappingContext mappingContext)

                                                                                                                        +

                                                                                                                        +
                                                                                                                      • +
                                                                                                                      + +
                                                                                                                    • +
                                                                                                                    + + + + + +
                                                                                                                      +
                                                                                                                    • + + +

                                                                                                                      Method Detail

                                                                                                                      + + +
                                                                                                                        +
                                                                                                                      • +

                                                                                                                        @java.lang.Override
                                                                                                                        java.lang.Object determineNonStandardValue(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                                                        +

                                                                                                                        +
                                                                                                                      • +
                                                                                                                      + + +
                                                                                                                        +
                                                                                                                      • +

                                                                                                                        @java.lang.Override
                                                                                                                        void setValue(java.lang.Object instance, java.lang.String propertyName, java.lang.Object value)

                                                                                                                        +

                                                                                                                        +
                                                                                                                      • +
                                                                                                                      + +
                                                                                                                    • +
                                                                                                                    + +
                                                                                                                  • +
                                                                                                                  +
                                                                                                                  + + + +
                                                                                                                  + + + + + +
                                                                                                                  + + +
                                                                                                                  + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/RangeConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/RangeConstraintHandler.html new file mode 100644 index 0000000..27dda1e --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/RangeConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + RangeConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                                  + + + + + +
                                                                                                                  + + + + + +
                                                                                                                  + +
                                                                                                                  Package: grails.buildtestdata.handler
                                                                                                                  + +

                                                                                                                  [Groovy] Class RangeConstraintHandler

                                                                                                                  +
                                                                                                                  +
                                                                                                                  +
                                                                                                                    +
                                                                                                                      • grails.buildtestdata.handler.RangeConstraintHandler +
                                                                                                                      +
                                                                                                                      +
                                                                                                                        +
                                                                                                                      • + + + +
                                                                                                                        + +
                                                                                                                        @groovy.transform.CompileStatic
                                                                                                                        +class RangeConstraintHandler
                                                                                                                        +extends AbstractHandler
                                                                                                                        + +
                                                                                                                      • +
                                                                                                                      +
                                                                                                                      + +
                                                                                                                      +
                                                                                                                        +
                                                                                                                      • + + + + + + + + + + +
                                                                                                                          +
                                                                                                                        • +
                                                                                                                            + + + + + + + + + + + +
                                                                                                                            Inherited properties 
                                                                                                                            Properties inherited from classProperties
                                                                                                                            class AbstractHandlervalue
                                                                                                                            +
                                                                                                                          +
                                                                                                                        • + +
                                                                                                                        + + + + + + + +
                                                                                                                          +
                                                                                                                        • +

                                                                                                                          Constructor Summary

                                                                                                                          + +
                                                                                                                        • +
                                                                                                                        + + + + +
                                                                                                                          + +
                                                                                                                        • +

                                                                                                                          Methods Summary

                                                                                                                          +
                                                                                                                            + + + + + + + + + + + + + + +
                                                                                                                            Methods 
                                                                                                                            Type ParamsReturn TypeName and description
                                                                                                                            voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                                                            +
                                                                                                                          +
                                                                                                                        • + +
                                                                                                                        • +

                                                                                                                          Inherited Methods Summary

                                                                                                                          + +
                                                                                                                        • + +
                                                                                                                        + +
                                                                                                                      • +
                                                                                                                      +
                                                                                                                      + +
                                                                                                                      +
                                                                                                                        +
                                                                                                                      • + + + + + + + + + + +
                                                                                                                          +
                                                                                                                        • + + +

                                                                                                                          Constructor Detail

                                                                                                                          + + +
                                                                                                                            +
                                                                                                                          • +

                                                                                                                            RangeConstraintHandler()

                                                                                                                            +

                                                                                                                            +
                                                                                                                          • +
                                                                                                                          + +
                                                                                                                        • +
                                                                                                                        + + + + + +
                                                                                                                          +
                                                                                                                        • + + +

                                                                                                                          Method Detail

                                                                                                                          + + +
                                                                                                                            +
                                                                                                                          • +

                                                                                                                            @java.lang.Override
                                                                                                                            void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                                                            +

                                                                                                                            +
                                                                                                                          • +
                                                                                                                          + +
                                                                                                                        • +
                                                                                                                        + +
                                                                                                                      • +
                                                                                                                      +
                                                                                                                      + + + +
                                                                                                                      + + + + + +
                                                                                                                      + + +
                                                                                                                      + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/SizeConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/SizeConstraintHandler.html new file mode 100644 index 0000000..76cfbc1 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/SizeConstraintHandler.html @@ -0,0 +1,382 @@ + + + + + + + + + + + SizeConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                                      + + + + + +
                                                                                                                      + + + + + +
                                                                                                                      + +
                                                                                                                      Package: grails.buildtestdata.handler
                                                                                                                      + +

                                                                                                                      [Groovy] Class SizeConstraintHandler

                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                        +
                                                                                                                          • grails.buildtestdata.handler.SizeConstraintHandler +
                                                                                                                          +
                                                                                                                          +
                                                                                                                            +
                                                                                                                          • + + + +
                                                                                                                            + +
                                                                                                                            @groovy.transform.CompileStatic
                                                                                                                            +class SizeConstraintHandler
                                                                                                                            +extends AbstractHandler
                                                                                                                            + +
                                                                                                                          • +
                                                                                                                          +
                                                                                                                          + +
                                                                                                                          + +
                                                                                                                          + +
                                                                                                                          +
                                                                                                                            +
                                                                                                                          • + + + + + + + + + + + + + +
                                                                                                                              +
                                                                                                                            • + + +

                                                                                                                              Constructor Detail

                                                                                                                              + + +
                                                                                                                                +
                                                                                                                              • +

                                                                                                                                SizeConstraintHandler()

                                                                                                                                +

                                                                                                                                +
                                                                                                                              • +
                                                                                                                              + +
                                                                                                                            • +
                                                                                                                            + + + + + +
                                                                                                                              +
                                                                                                                            • + + +

                                                                                                                              Method Detail

                                                                                                                              + + +
                                                                                                                                +
                                                                                                                              • +

                                                                                                                                @java.lang.Override
                                                                                                                                void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                                                                +

                                                                                                                                +
                                                                                                                              • +
                                                                                                                              + + +
                                                                                                                                +
                                                                                                                              • +

                                                                                                                                void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty, DataBuilderContext ctx)

                                                                                                                                +

                                                                                                                                +
                                                                                                                              • +
                                                                                                                              + +
                                                                                                                            • +
                                                                                                                            + +
                                                                                                                          • +
                                                                                                                          +
                                                                                                                          + + + +
                                                                                                                          + + + + + +
                                                                                                                          + + +
                                                                                                                          + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/UniqueConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/UniqueConstraintHandler.html new file mode 100644 index 0000000..108b52e --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/UniqueConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + UniqueConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                                          + + + + + +
                                                                                                                          + + + + + +
                                                                                                                          + +
                                                                                                                          Package: grails.buildtestdata.handler
                                                                                                                          + +

                                                                                                                          [Groovy] Class UniqueConstraintHandler

                                                                                                                          +
                                                                                                                          +
                                                                                                                          +
                                                                                                                            +
                                                                                                                              • grails.buildtestdata.handler.UniqueConstraintHandler +
                                                                                                                              +
                                                                                                                              +
                                                                                                                                +
                                                                                                                              • + + + +
                                                                                                                                + +
                                                                                                                                @groovy.transform.CompileStatic
                                                                                                                                +class UniqueConstraintHandler
                                                                                                                                +extends AbstractHandler
                                                                                                                                + +
                                                                                                                              • +
                                                                                                                              +
                                                                                                                              + +
                                                                                                                              +
                                                                                                                                +
                                                                                                                              • + + + + + + + + + + +
                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                    + + + + + + + + + + + +
                                                                                                                                    Inherited properties 
                                                                                                                                    Properties inherited from classProperties
                                                                                                                                    class AbstractHandlervalue
                                                                                                                                    +
                                                                                                                                  +
                                                                                                                                • + +
                                                                                                                                + + + + + + + +
                                                                                                                                  +
                                                                                                                                • +

                                                                                                                                  Constructor Summary

                                                                                                                                  + +
                                                                                                                                • +
                                                                                                                                + + + + +
                                                                                                                                  + +
                                                                                                                                • +

                                                                                                                                  Methods Summary

                                                                                                                                  +
                                                                                                                                    + + + + + + + + + + + + + + +
                                                                                                                                    Methods 
                                                                                                                                    Type ParamsReturn TypeName and description
                                                                                                                                    voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                                                                    +
                                                                                                                                  +
                                                                                                                                • + +
                                                                                                                                • +

                                                                                                                                  Inherited Methods Summary

                                                                                                                                  + +
                                                                                                                                • + +
                                                                                                                                + +
                                                                                                                              • +
                                                                                                                              +
                                                                                                                              + +
                                                                                                                              +
                                                                                                                                +
                                                                                                                              • + + + + + + + + + + +
                                                                                                                                  +
                                                                                                                                • + + +

                                                                                                                                  Constructor Detail

                                                                                                                                  + + +
                                                                                                                                    +
                                                                                                                                  • +

                                                                                                                                    UniqueConstraintHandler()

                                                                                                                                    +

                                                                                                                                    +
                                                                                                                                  • +
                                                                                                                                  + +
                                                                                                                                • +
                                                                                                                                + + + + + +
                                                                                                                                  +
                                                                                                                                • + + +

                                                                                                                                  Method Detail

                                                                                                                                  + + +
                                                                                                                                    +
                                                                                                                                  • +

                                                                                                                                    @java.lang.Override
                                                                                                                                    void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                                                                    +

                                                                                                                                    +
                                                                                                                                  • +
                                                                                                                                  + +
                                                                                                                                • +
                                                                                                                                + +
                                                                                                                              • +
                                                                                                                              +
                                                                                                                              + + + +
                                                                                                                              + + + + + +
                                                                                                                              + + +
                                                                                                                              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/UrlConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/UrlConstraintHandler.html new file mode 100644 index 0000000..3b8ba93 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/UrlConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + UrlConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                                              + + + + + +
                                                                                                                              + + + + + +
                                                                                                                              + +
                                                                                                                              Package: grails.buildtestdata.handler
                                                                                                                              + +

                                                                                                                              [Groovy] Class UrlConstraintHandler

                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                                +
                                                                                                                                  • grails.buildtestdata.handler.UrlConstraintHandler +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • + + + +
                                                                                                                                    + +
                                                                                                                                    @groovy.transform.CompileStatic
                                                                                                                                    +class UrlConstraintHandler
                                                                                                                                    +extends AbstractHandler
                                                                                                                                    + +
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                  + +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • + + + + + + + + + + +
                                                                                                                                      +
                                                                                                                                    • +
                                                                                                                                        + + + + + + + + + + + +
                                                                                                                                        Inherited properties 
                                                                                                                                        Properties inherited from classProperties
                                                                                                                                        class AbstractHandlervalue
                                                                                                                                        +
                                                                                                                                      +
                                                                                                                                    • + +
                                                                                                                                    + + + + + + + +
                                                                                                                                      +
                                                                                                                                    • +

                                                                                                                                      Constructor Summary

                                                                                                                                      + +
                                                                                                                                    • +
                                                                                                                                    + + + + +
                                                                                                                                      + +
                                                                                                                                    • +

                                                                                                                                      Methods Summary

                                                                                                                                      +
                                                                                                                                        + + + + + + + + + + + + + + +
                                                                                                                                        Methods 
                                                                                                                                        Type ParamsReturn TypeName and description
                                                                                                                                        voidhandle(java.lang.Object instance, java.lang.String propertyName)
                                                                                                                                        +
                                                                                                                                      +
                                                                                                                                    • + +
                                                                                                                                    • +

                                                                                                                                      Inherited Methods Summary

                                                                                                                                      + +
                                                                                                                                    • + +
                                                                                                                                    + +
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                  + +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • + + + + + + + + + + +
                                                                                                                                      +
                                                                                                                                    • + + +

                                                                                                                                      Constructor Detail

                                                                                                                                      + + +
                                                                                                                                        +
                                                                                                                                      • +

                                                                                                                                        UrlConstraintHandler()

                                                                                                                                        +

                                                                                                                                        +
                                                                                                                                      • +
                                                                                                                                      + +
                                                                                                                                    • +
                                                                                                                                    + + + + + +
                                                                                                                                      +
                                                                                                                                    • + + +

                                                                                                                                      Method Detail

                                                                                                                                      + + +
                                                                                                                                        +
                                                                                                                                      • +

                                                                                                                                        @java.lang.Override
                                                                                                                                        void handle(java.lang.Object instance, java.lang.String propertyName)

                                                                                                                                        +

                                                                                                                                        +
                                                                                                                                      • +
                                                                                                                                      + +
                                                                                                                                    • +
                                                                                                                                    + +
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                  + + + +
                                                                                                                                  + + + + + +
                                                                                                                                  + + +
                                                                                                                                  + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/ValidatorConstraintHandler.html b/6.0.x/gapi/grails/buildtestdata/handler/ValidatorConstraintHandler.html new file mode 100644 index 0000000..428b6f8 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/ValidatorConstraintHandler.html @@ -0,0 +1,318 @@ + + + + + + + + + + + ValidatorConstraintHandler (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                  + + + + + +
                                                                                                                                  + + + + + +
                                                                                                                                  + +
                                                                                                                                  Package: grails.buildtestdata.handler
                                                                                                                                  + +

                                                                                                                                  [Groovy] Class ValidatorConstraintHandler

                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                      • grails.buildtestdata.handler.ValidatorConstraintHandler +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                      • + + + +
                                                                                                                                        + +
                                                                                                                                        @groovy.transform.CompileStatic
                                                                                                                                        +class ValidatorConstraintHandler
                                                                                                                                        +extends AbstractHandler
                                                                                                                                        + +
                                                                                                                                      • +
                                                                                                                                      +
                                                                                                                                      + +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                      • + + + + + + + + + + +
                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                            + + + + + + + + + + + +
                                                                                                                                            Inherited properties 
                                                                                                                                            Properties inherited from classProperties
                                                                                                                                            class AbstractHandlervalue
                                                                                                                                            +
                                                                                                                                          +
                                                                                                                                        • + +
                                                                                                                                        + + + + + + + + + + + + +
                                                                                                                                          + +
                                                                                                                                        • +

                                                                                                                                          Methods Summary

                                                                                                                                          +
                                                                                                                                            + + + + + + + + + + + + + + +
                                                                                                                                            Methods 
                                                                                                                                            Type ParamsReturn TypeName and description
                                                                                                                                            voidhandle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)
                                                                                                                                            +
                                                                                                                                          +
                                                                                                                                        • + +
                                                                                                                                        • +

                                                                                                                                          Inherited Methods Summary

                                                                                                                                          + +
                                                                                                                                        • + +
                                                                                                                                        + +
                                                                                                                                      • +
                                                                                                                                      +
                                                                                                                                      + +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                      • + + + + + + + + + + +
                                                                                                                                          +
                                                                                                                                        • + + +

                                                                                                                                          Constructor Detail

                                                                                                                                          + + +
                                                                                                                                            +
                                                                                                                                          • +

                                                                                                                                            ValidatorConstraintHandler()

                                                                                                                                            +

                                                                                                                                            +
                                                                                                                                          • +
                                                                                                                                          + +
                                                                                                                                        • +
                                                                                                                                        + + + + + +
                                                                                                                                          +
                                                                                                                                        • + + +

                                                                                                                                          Method Detail

                                                                                                                                          + + +
                                                                                                                                            +
                                                                                                                                          • +

                                                                                                                                            @java.lang.Override
                                                                                                                                            void handle(java.lang.Object instance, java.lang.String propertyName, grails.gorm.validation.Constraint appliedConstraint, grails.gorm.validation.ConstrainedProperty constrainedProperty)

                                                                                                                                            +

                                                                                                                                            +
                                                                                                                                          • +
                                                                                                                                          + +
                                                                                                                                        • +
                                                                                                                                        + +
                                                                                                                                      • +
                                                                                                                                      +
                                                                                                                                      + + + +
                                                                                                                                      + + + + + +
                                                                                                                                      + + +
                                                                                                                                      + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/package-frame.html b/6.0.x/gapi/grails/buildtestdata/handler/package-frame.html new file mode 100644 index 0000000..e626a76 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/package-frame.html @@ -0,0 +1,74 @@ + + + + + grails.buildtestdata.handler + + + + + + + + + + + + + + +
                                                                                                                                      +

                                                                                                                                      Interfaces

                                                                                                                                      + +
                                                                                                                                      + + + + + + + + + +
                                                                                                                                      +

                                                                                                                                      Exceptions

                                                                                                                                      + +
                                                                                                                                      + + + + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/handler/package-summary.html b/6.0.x/gapi/grails/buildtestdata/handler/package-summary.html new file mode 100644 index 0000000..02ca238 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/handler/package-summary.html @@ -0,0 +1,340 @@ + + + + + +grails.buildtestdata.handler (Groovy Documentation) + + + + + + + + + + + + + +
                                                                                                                                      + + + + + + +
                                                                                                                                      + + + + + +
                                                                                                                                      +

                                                                                                                                      Package grails.buildtestdata.handler

                                                                                                                                      +
                                                                                                                                      + + + +
                                                                                                                                      + + +
                                                                                                                                      + +
                                                                                                                                      + + + + + + + + + +
                                                                                                                                      + +
                                                                                                                                      + + + + + +
                                                                                                                                      + + +
                                                                                                                                      + + + + + +
                                                                                                                                      + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/mixin/Build.html b/6.0.x/gapi/grails/buildtestdata/mixin/Build.html new file mode 100644 index 0000000..dbb6192 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/mixin/Build.html @@ -0,0 +1,263 @@ + + + + + + + + + + + Build (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                      + + + + + +
                                                                                                                                      + + + + + +
                                                                                                                                      + +
                                                                                                                                      Package: grails.buildtestdata.mixin
                                                                                                                                      + +

                                                                                                                                      [Groovy] Annotation Type Build

                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                        • grails.buildtestdata.mixin.Build +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • + +
                                                                                                                                          +
                                                                                                                                          All Implemented Interfaces and Traits:
                                                                                                                                          +
                                                                                                                                          java.lang.annotation.Annotation
                                                                                                                                          +
                                                                                                                                          + + + +
                                                                                                                                          + +
                                                                                                                                          @java.lang.annotation.Retention(value: RetentionPolicy.RUNTIME)
                                                                                                                                          +@interface Build
                                                                                                                                          + +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                        + +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • + + + + + + + + + + + + + + + + + + +
                                                                                                                                            + +
                                                                                                                                          • +

                                                                                                                                            Methods Summary

                                                                                                                                            +
                                                                                                                                              + + + + + + + + + + + + + + +
                                                                                                                                              Methods 
                                                                                                                                              Type ParamsReturn TypeName and description
                                                                                                                                              abstract java.lang.Class[]value()
                                                                                                                                              +
                                                                                                                                            +
                                                                                                                                          • + +
                                                                                                                                          • +

                                                                                                                                            Inherited Methods Summary

                                                                                                                                            +
                                                                                                                                              + + + + + + + + + + + +
                                                                                                                                              Inherited Methods 
                                                                                                                                              Methods inherited from className
                                                                                                                                              class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                              +
                                                                                                                                            +
                                                                                                                                          • + +
                                                                                                                                          + +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                        + +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • + + + + + + + + + + + + + +
                                                                                                                                            +
                                                                                                                                          • + + +

                                                                                                                                            Method Detail

                                                                                                                                            + + +
                                                                                                                                              +
                                                                                                                                            • +

                                                                                                                                              abstract java.lang.Class[] value()

                                                                                                                                              +

                                                                                                                                              +
                                                                                                                                            • +
                                                                                                                                            + +
                                                                                                                                          • +
                                                                                                                                          + +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                        + + + +
                                                                                                                                        + + + + + +
                                                                                                                                        + + +
                                                                                                                                        + + + diff --git a/6.0.x/gapi/grails/buildtestdata/mixin/package-frame.html b/6.0.x/gapi/grails/buildtestdata/mixin/package-frame.html new file mode 100644 index 0000000..ed11345 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/mixin/package-frame.html @@ -0,0 +1,58 @@ + + + + + grails.buildtestdata.mixin + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                        +

                                                                                                                                        Annotation Types

                                                                                                                                        + +
                                                                                                                                        + + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/mixin/package-summary.html b/6.0.x/gapi/grails/buildtestdata/mixin/package-summary.html new file mode 100644 index 0000000..e4b4457 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/mixin/package-summary.html @@ -0,0 +1,144 @@ + + + + + +grails.buildtestdata.mixin (Groovy Documentation) + + + + + + + + + + + + + +
                                                                                                                                        + + + + + + +
                                                                                                                                        + + + + + +
                                                                                                                                        +

                                                                                                                                        Package grails.buildtestdata.mixin

                                                                                                                                        +
                                                                                                                                        + + + +
                                                                                                                                        + + + + + + + + +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • + + + + + + + + + + + + + +
                                                                                                                                          Annotation Type Summary 
                                                                                                                                          Annotation TypeDescription
                                                                                                                                          + + Build + +
                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                        + + + +
                                                                                                                                        + + +
                                                                                                                                        + + + + + +
                                                                                                                                        + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/package-frame.html b/6.0.x/gapi/grails/buildtestdata/package-frame.html new file mode 100644 index 0000000..1f7423e --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/package-frame.html @@ -0,0 +1,66 @@ + + + + + grails.buildtestdata + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/package-summary.html b/6.0.x/gapi/grails/buildtestdata/package-summary.html new file mode 100644 index 0000000..d3d5e5c --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/package-summary.html @@ -0,0 +1,222 @@ + + + + + +grails.buildtestdata (Groovy Documentation) + + + + + + + + + + + + + +
                                                                                                                                        + + + + + + +
                                                                                                                                        + + + + + +
                                                                                                                                        +

                                                                                                                                        Package grails.buildtestdata

                                                                                                                                        +
                                                                                                                                        + + + +
                                                                                                                                        + + + +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                          Trait Summary 
                                                                                                                                          TraitDescription
                                                                                                                                          + + BuildDataTest + + Unit tests should implement this trait to add build-test-data functionality. +
                                                                                                                                          + + BuildDomainTest + + Should works as a drop in replacement for the Grails Testing Support's + grails.testing.gorm.DomainUnitTest for testing a single entity using Generics + Its walks the tree so if you have a Book that has a required Author association you only need to do + implement BuildDomainTest and it will take care of mocking the Author for you.
                                                                                                                                          + + BuildHibernateTest + + Support build test data functionality for unit tests that extend HibernateSpec
                                                                                                                                          + + TestDataBuilder + + Integration tests, any class really, can implement this trait to add build-test-data functionality
                                                                                                                                          + + UnitTestDataBuilder + +
                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                        + + + +
                                                                                                                                        + +
                                                                                                                                        + + + + + + + +
                                                                                                                                        + + +
                                                                                                                                        + + + + + +
                                                                                                                                        + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/propsresolver/ClosurePropsResolver.html b/6.0.x/gapi/grails/buildtestdata/propsresolver/ClosurePropsResolver.html new file mode 100644 index 0000000..c95f27d --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/propsresolver/ClosurePropsResolver.html @@ -0,0 +1,343 @@ + + + + + + + + + + + ClosurePropsResolver (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                        + + + + + +
                                                                                                                                        + + + + + +
                                                                                                                                        + +
                                                                                                                                        Package: grails.buildtestdata.propsresolver
                                                                                                                                        + +

                                                                                                                                        [Groovy] Class ClosurePropsResolver

                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                          • grails.buildtestdata.propsresolver.ClosurePropsResolver +
                                                                                                                                          +
                                                                                                                                          + +
                                                                                                                                          + +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • + + + + + + + + + + +
                                                                                                                                              +
                                                                                                                                            • +

                                                                                                                                              Properties Summary

                                                                                                                                              +
                                                                                                                                                + + + + + + + + + + + + +
                                                                                                                                                Properties 
                                                                                                                                                TypeName and description
                                                                                                                                                java.util.Map<java.lang.Class, groovy.lang.Closure> initialProps
                                                                                                                                                +
                                                                                                                                              +
                                                                                                                                            • + +
                                                                                                                                            + + + + + + + +
                                                                                                                                              +
                                                                                                                                            • +

                                                                                                                                              Constructor Summary

                                                                                                                                              +
                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                Constructors 
                                                                                                                                                Constructor and description
                                                                                                                                                + ClosurePropsResolver(java.util.Map<java.lang.Class, groovy.lang.Closure> initialProps)
                                                                                                                                                +
                                                                                                                                              +
                                                                                                                                            • +
                                                                                                                                            + + + + +
                                                                                                                                              + +
                                                                                                                                            • +

                                                                                                                                              Methods Summary

                                                                                                                                              +
                                                                                                                                                + + + + + + + + + + + + + + +
                                                                                                                                                Methods 
                                                                                                                                                Type ParamsReturn TypeName and description
                                                                                                                                                java.util.Map<java.lang.String, ?>getInitialProps(java.lang.Class target)
                                                                                                                                                +
                                                                                                                                              +
                                                                                                                                            • + +
                                                                                                                                            • +

                                                                                                                                              Inherited Methods Summary

                                                                                                                                              +
                                                                                                                                                + + + + + + + + + + + +
                                                                                                                                                Inherited Methods 
                                                                                                                                                Methods inherited from className
                                                                                                                                                class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                                +
                                                                                                                                              +
                                                                                                                                            • + +
                                                                                                                                            + +
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                          + +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • + + + + + + +
                                                                                                                                              +
                                                                                                                                            • + + +

                                                                                                                                              Property Detail

                                                                                                                                              + + +
                                                                                                                                                +
                                                                                                                                              • +

                                                                                                                                                java.util.Map<java.lang.Class, groovy.lang.Closure> initialProps

                                                                                                                                                +

                                                                                                                                                +
                                                                                                                                              • +
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            + + + + + + +
                                                                                                                                              +
                                                                                                                                            • + + +

                                                                                                                                              Constructor Detail

                                                                                                                                              + + +
                                                                                                                                                +
                                                                                                                                              • +

                                                                                                                                                ClosurePropsResolver(java.util.Map<java.lang.Class, groovy.lang.Closure> initialProps)

                                                                                                                                                +

                                                                                                                                                +
                                                                                                                                              • +
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            + + + + + +
                                                                                                                                              +
                                                                                                                                            • + + +

                                                                                                                                              Method Detail

                                                                                                                                              + + +
                                                                                                                                                +
                                                                                                                                              • +

                                                                                                                                                @java.lang.Override
                                                                                                                                                java.util.Map<java.lang.String, ?> getInitialProps(java.lang.Class target)

                                                                                                                                                +

                                                                                                                                                +
                                                                                                                                              • +
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            + +
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                          + + + +
                                                                                                                                          + + + + + +
                                                                                                                                          + + +
                                                                                                                                          + + + diff --git a/6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.EmptyInitialPropsResolver.html b/6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.EmptyInitialPropsResolver.html new file mode 100644 index 0000000..293e964 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.EmptyInitialPropsResolver.html @@ -0,0 +1,303 @@ + + + + + + + + + + + InitialPropsResolver.EmptyInitialPropsResolver (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                          + + + + + +
                                                                                                                                          + + + + + +
                                                                                                                                          + +
                                                                                                                                          Package: grails.buildtestdata.propsresolver
                                                                                                                                          + +

                                                                                                                                          [Groovy] Class InitialPropsResolver.EmptyInitialPropsResolver

                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                            • grails.buildtestdata.propsresolver.InitialPropsResolver.EmptyInitialPropsResolver +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • + +
                                                                                                                                              +
                                                                                                                                              All Implemented Interfaces and Traits:
                                                                                                                                              +
                                                                                                                                              InitialPropsResolver
                                                                                                                                              +
                                                                                                                                              + + + +
                                                                                                                                              + +
                                                                                                                                              static class InitialPropsResolver.EmptyInitialPropsResolver
                                                                                                                                              +extends java.lang.Object
                                                                                                                                              +implements InitialPropsResolver
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            + +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                + +
                                                                                                                                              • +

                                                                                                                                                Methods Summary

                                                                                                                                                +
                                                                                                                                                  + + + + + + + + + + + + + + +
                                                                                                                                                  Methods 
                                                                                                                                                  Type ParamsReturn TypeName and description
                                                                                                                                                  java.util.Map<java.lang.String, ?>getInitialProps(java.lang.Class target)
                                                                                                                                                  +
                                                                                                                                                +
                                                                                                                                              • + +
                                                                                                                                              • +

                                                                                                                                                Inherited Methods Summary

                                                                                                                                                +
                                                                                                                                                  + + + + + + + + + + + +
                                                                                                                                                  Inherited Methods 
                                                                                                                                                  Methods inherited from className
                                                                                                                                                  class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                                  +
                                                                                                                                                +
                                                                                                                                              • + +
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            + +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • + + + + + + + + + + +
                                                                                                                                                +
                                                                                                                                              • + + +

                                                                                                                                                Constructor Detail

                                                                                                                                                + + +
                                                                                                                                                  +
                                                                                                                                                • +

                                                                                                                                                  InitialPropsResolver.EmptyInitialPropsResolver()

                                                                                                                                                  +

                                                                                                                                                  +
                                                                                                                                                • +
                                                                                                                                                + +
                                                                                                                                              • +
                                                                                                                                              + + + + + +
                                                                                                                                                +
                                                                                                                                              • + + +

                                                                                                                                                Method Detail

                                                                                                                                                + + +
                                                                                                                                                  +
                                                                                                                                                • +

                                                                                                                                                  @java.lang.Override
                                                                                                                                                  java.util.Map<java.lang.String, ?> getInitialProps(java.lang.Class target)

                                                                                                                                                  +

                                                                                                                                                  +
                                                                                                                                                • +
                                                                                                                                                + +
                                                                                                                                              • +
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            + + + +
                                                                                                                                            + + + + + +
                                                                                                                                            + + +
                                                                                                                                            + + + diff --git a/6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.html b/6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.html new file mode 100644 index 0000000..3432b2d --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/propsresolver/InitialPropsResolver.html @@ -0,0 +1,261 @@ + + + + + + + + + + + InitialPropsResolver (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                            + + + + + +
                                                                                                                                            + + + + + +
                                                                                                                                            + +
                                                                                                                                            Package: grails.buildtestdata.propsresolver
                                                                                                                                            + +

                                                                                                                                            [Groovy] Interface InitialPropsResolver

                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              + +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • + + +
                                                                                                                                              + +
                                                                                                                                              interface InitialPropsResolver
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            + +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                + +
                                                                                                                                              • +

                                                                                                                                                Methods Summary

                                                                                                                                                +
                                                                                                                                                  + + + + + + + + + + + + + + +
                                                                                                                                                  Methods 
                                                                                                                                                  Type ParamsReturn TypeName and description
                                                                                                                                                  abstract java.util.Map<java.lang.String, ?>getInitialProps(java.lang.Class target)
                                                                                                                                                  +
                                                                                                                                                +
                                                                                                                                              • + +
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            + +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • + + + + + + + + + + + + + +
                                                                                                                                                +
                                                                                                                                              • + + +

                                                                                                                                                Method Detail

                                                                                                                                                + + +
                                                                                                                                                  +
                                                                                                                                                • +

                                                                                                                                                  abstract java.util.Map<java.lang.String, ?> getInitialProps(java.lang.Class target)

                                                                                                                                                  +

                                                                                                                                                  +
                                                                                                                                                • +
                                                                                                                                                + +
                                                                                                                                              • +
                                                                                                                                              + +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            + + + +
                                                                                                                                            + + + + + +
                                                                                                                                            + + +
                                                                                                                                            + + + diff --git a/6.0.x/gapi/grails/buildtestdata/propsresolver/MapPropsResolver.html b/6.0.x/gapi/grails/buildtestdata/propsresolver/MapPropsResolver.html new file mode 100644 index 0000000..0dcf4ff --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/propsresolver/MapPropsResolver.html @@ -0,0 +1,343 @@ + + + + + + + + + + + MapPropsResolver (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                            + + + + + +
                                                                                                                                            + + + + + +
                                                                                                                                            + +
                                                                                                                                            Package: grails.buildtestdata.propsresolver
                                                                                                                                            + +

                                                                                                                                            [Groovy] Class MapPropsResolver

                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                              • grails.buildtestdata.propsresolver.MapPropsResolver +
                                                                                                                                              +
                                                                                                                                              + +
                                                                                                                                              + +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                              • + + + + + + + + + + +
                                                                                                                                                  +
                                                                                                                                                • +

                                                                                                                                                  Properties Summary

                                                                                                                                                  +
                                                                                                                                                    + + + + + + + + + + + + +
                                                                                                                                                    Properties 
                                                                                                                                                    TypeName and description
                                                                                                                                                    java.util.Map data
                                                                                                                                                    +
                                                                                                                                                  +
                                                                                                                                                • + +
                                                                                                                                                + + + + + + + +
                                                                                                                                                  +
                                                                                                                                                • +

                                                                                                                                                  Constructor Summary

                                                                                                                                                  +
                                                                                                                                                    + + + + + + + + + + +
                                                                                                                                                    Constructors 
                                                                                                                                                    Constructor and description
                                                                                                                                                    + MapPropsResolver(java.util.Map data)
                                                                                                                                                    +
                                                                                                                                                  +
                                                                                                                                                • +
                                                                                                                                                + + + + +
                                                                                                                                                  + +
                                                                                                                                                • +

                                                                                                                                                  Methods Summary

                                                                                                                                                  +
                                                                                                                                                    + + + + + + + + + + + + + + +
                                                                                                                                                    Methods 
                                                                                                                                                    Type ParamsReturn TypeName and description
                                                                                                                                                    java.util.Map<java.lang.String, ?>getInitialProps(java.lang.Class target)
                                                                                                                                                    +
                                                                                                                                                  +
                                                                                                                                                • + +
                                                                                                                                                • +

                                                                                                                                                  Inherited Methods Summary

                                                                                                                                                  +
                                                                                                                                                    + + + + + + + + + + + +
                                                                                                                                                    Inherited Methods 
                                                                                                                                                    Methods inherited from className
                                                                                                                                                    class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                                    +
                                                                                                                                                  +
                                                                                                                                                • + +
                                                                                                                                                + +
                                                                                                                                              • +
                                                                                                                                              +
                                                                                                                                              + +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                              • + + + + + + +
                                                                                                                                                  +
                                                                                                                                                • + + +

                                                                                                                                                  Property Detail

                                                                                                                                                  + + +
                                                                                                                                                    +
                                                                                                                                                  • +

                                                                                                                                                    java.util.Map data

                                                                                                                                                    +

                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  + +
                                                                                                                                                • +
                                                                                                                                                + + + + + + +
                                                                                                                                                  +
                                                                                                                                                • + + +

                                                                                                                                                  Constructor Detail

                                                                                                                                                  + + +
                                                                                                                                                    +
                                                                                                                                                  • +

                                                                                                                                                    MapPropsResolver(java.util.Map data)

                                                                                                                                                    +

                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  + +
                                                                                                                                                • +
                                                                                                                                                + + + + + +
                                                                                                                                                  +
                                                                                                                                                • + + +

                                                                                                                                                  Method Detail

                                                                                                                                                  + + +
                                                                                                                                                    +
                                                                                                                                                  • +

                                                                                                                                                    @java.lang.Override
                                                                                                                                                    java.util.Map<java.lang.String, ?> getInitialProps(java.lang.Class target)

                                                                                                                                                    +

                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  + +
                                                                                                                                                • +
                                                                                                                                                + +
                                                                                                                                              • +
                                                                                                                                              +
                                                                                                                                              + + + +
                                                                                                                                              + + + + + +
                                                                                                                                              + + +
                                                                                                                                              + + + diff --git a/6.0.x/gapi/grails/buildtestdata/propsresolver/package-frame.html b/6.0.x/gapi/grails/buildtestdata/propsresolver/package-frame.html new file mode 100644 index 0000000..8922b1b --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/propsresolver/package-frame.html @@ -0,0 +1,66 @@ + + + + + grails.buildtestdata.propsresolver + + + + + + + + + + + + + + +
                                                                                                                                              +

                                                                                                                                              Interfaces

                                                                                                                                              + +
                                                                                                                                              + + + + + + + + + + + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/propsresolver/package-summary.html b/6.0.x/gapi/grails/buildtestdata/propsresolver/package-summary.html new file mode 100644 index 0000000..045a7ba --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/propsresolver/package-summary.html @@ -0,0 +1,186 @@ + + + + + +grails.buildtestdata.propsresolver (Groovy Documentation) + + + + + + + + + + + + + +
                                                                                                                                              + + + + + + +
                                                                                                                                              + + + + + +
                                                                                                                                              +

                                                                                                                                              Package grails.buildtestdata.propsresolver

                                                                                                                                              +
                                                                                                                                              + + + +
                                                                                                                                              + + +
                                                                                                                                              + +
                                                                                                                                              + + + + +
                                                                                                                                              + +
                                                                                                                                              + + + + + + + +
                                                                                                                                              + + +
                                                                                                                                              + + + + + +
                                                                                                                                              + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/testing/DependencyDataTest.html b/6.0.x/gapi/grails/buildtestdata/testing/DependencyDataTest.html new file mode 100644 index 0000000..717abc0 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/testing/DependencyDataTest.html @@ -0,0 +1,292 @@ + + + + + + + + + + + DependencyDataTest (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                              + + + + + +
                                                                                                                                              + + + + + +
                                                                                                                                              + +
                                                                                                                                              Package: grails.buildtestdata.testing
                                                                                                                                              + +

                                                                                                                                              [Groovy] Trait DependencyDataTest

                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                                  • grails.buildtestdata.testing.DependencyDataTest +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • + + + +
                                                                                                                                                    + +
                                                                                                                                                    @groovy.transform.Trait
                                                                                                                                                    +@groovy.transform.CompileStatic
                                                                                                                                                    +trait DependencyDataTest
                                                                                                                                                    +extends grails.testing.gorm.DataTest
                                                                                                                                                    + +

                                                                                                                                                    Overrides the mockDomains on DataTest to mock the dependency tree

                                                                                                                                                    + +
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                  + +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • + + + + + + + + + + + + + + + + + + +
                                                                                                                                                      + +
                                                                                                                                                    • +

                                                                                                                                                      Methods Summary

                                                                                                                                                      +
                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                        Methods 
                                                                                                                                                        Type ParamsReturn TypeName and description
                                                                                                                                                        voidmockDependencyGraph(java.util.Set<java.lang.Class> mockedList, java.lang.Class<?>[] domainClassesToMock)
                                                                                                                                                        voidmockDomains(java.lang.Class<?>[] domainClassesToMock)
                                                                                                                                                        voidonMockDomains(java.lang.Class<?>[] entityClasses)
                                                                                                                                                        Empty, override in traits or the implemented tests. +
                                                                                                                                                        +
                                                                                                                                                      +
                                                                                                                                                    • + +
                                                                                                                                                    • +

                                                                                                                                                      Inherited Methods Summary

                                                                                                                                                      +
                                                                                                                                                        + + + + + + + + + + + +
                                                                                                                                                        Inherited Methods 
                                                                                                                                                        Methods inherited from className
                                                                                                                                                        interface grails.testing.gorm.DataTestgrails.testing.gorm.DataTest#getDomainClassesToMock(), grails.testing.gorm.DataTest#getFailOnError(), grails.testing.gorm.DataTest#mockDomain(java.lang.Class), grails.testing.gorm.DataTest#mockDomain(java.lang.Class, java.util.List), grails.testing.gorm.DataTest#mockDomains([Ljava.lang.Class;), grails.testing.gorm.DataTest#mockDataService(java.lang.Class), grails.testing.gorm.DataTest#getDataStore(), grails.testing.gorm.DataTest#getDatastore(), grails.testing.gorm.DataTest#getTransactionManager(), grails.testing.gorm.DataTest#getDomainsHaveBeenMocked(), grails.testing.gorm.DataTest#isDomainsHaveBeenMocked(), grails.testing.gorm.DataTest#setDomainsHaveBeenMocked(boolean), grails.testing.gorm.DataTest#getCurrentSession(), grails.testing.gorm.DataTest#setCurrentSession(org.grails.datastore.mapping.core.Session), grails.testing.gorm.DataTest#getConfig(), grails.testing.gorm.DataTest#getApplicationContext(), grails.testing.gorm.DataTest#getGrailsApplication(), grails.testing.gorm.DataTest#getLocalOverride(), grails.testing.gorm.DataTest#getOptionalServletContext(), grails.testing.gorm.DataTest#getMessageSource(), grails.testing.gorm.DataTest#defineBeans(java.lang.Object), grails.testing.gorm.DataTest#defineBeans(groovy.lang.Closure), grails.testing.gorm.DataTest#doWithSpring(), grails.testing.gorm.DataTest#doWithConfig(), grails.testing.gorm.DataTest#getIncludePlugins(), grails.testing.gorm.DataTest#loadExternalBeans(), grails.testing.gorm.DataTest#cleanupGrailsApplication()
                                                                                                                                                        +
                                                                                                                                                      +
                                                                                                                                                    • + +
                                                                                                                                                    + +
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                  + +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • + + + + + + + + + + + + + +
                                                                                                                                                      +
                                                                                                                                                    • + + +

                                                                                                                                                      Method Detail

                                                                                                                                                      + + +
                                                                                                                                                        +
                                                                                                                                                      • +

                                                                                                                                                        void mockDependencyGraph(java.util.Set<java.lang.Class> mockedList, java.lang.Class<?>[] domainClassesToMock)

                                                                                                                                                        +

                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      + + +
                                                                                                                                                        +
                                                                                                                                                      • +

                                                                                                                                                        @java.lang.Override
                                                                                                                                                        void mockDomains(java.lang.Class<?>[] domainClassesToMock)

                                                                                                                                                        +

                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      + + +
                                                                                                                                                        +
                                                                                                                                                      • +

                                                                                                                                                        void onMockDomains(java.lang.Class<?>[] entityClasses)

                                                                                                                                                        +

                                                                                                                                                        Empty, override in traits or the implemented tests. + Gets called/fired for all the mocked domain during mockDependencyGraph

                                                                                                                                                        Parameters:
                                                                                                                                                        entityClasses

                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      + +
                                                                                                                                                    • +
                                                                                                                                                    + +
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                  + + + +
                                                                                                                                                  + + + + + +
                                                                                                                                                  + + +
                                                                                                                                                  + + + diff --git a/6.0.x/gapi/grails/buildtestdata/testing/package-frame.html b/6.0.x/gapi/grails/buildtestdata/testing/package-frame.html new file mode 100644 index 0000000..6632355 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/testing/package-frame.html @@ -0,0 +1,58 @@ + + + + + grails.buildtestdata.testing + + + + + + + + + + + + + + + +
                                                                                                                                                  +

                                                                                                                                                  Traits

                                                                                                                                                  + +
                                                                                                                                                  + + + + + + + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/testing/package-summary.html b/6.0.x/gapi/grails/buildtestdata/testing/package-summary.html new file mode 100644 index 0000000..46a0683 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/testing/package-summary.html @@ -0,0 +1,144 @@ + + + + + +grails.buildtestdata.testing (Groovy Documentation) + + + + + + + + + + + + + +
                                                                                                                                                  + + + + + + +
                                                                                                                                                  + + + + + +
                                                                                                                                                  +

                                                                                                                                                  Package grails.buildtestdata.testing

                                                                                                                                                  +
                                                                                                                                                  + + + +
                                                                                                                                                  + + + +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • + + + + + + + + + + + + + +
                                                                                                                                                    Trait Summary 
                                                                                                                                                    TraitDescription
                                                                                                                                                    + + DependencyDataTest + + Overrides the mockDomains on DataTest to mock the dependency tree
                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                  + + + + + + + + +
                                                                                                                                                  + + +
                                                                                                                                                  + + + + + +
                                                                                                                                                  + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/utils/Basics.html b/6.0.x/gapi/grails/buildtestdata/utils/Basics.html new file mode 100644 index 0000000..ffbc49c --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/utils/Basics.html @@ -0,0 +1,356 @@ + + + + + + + + + + + Basics (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                                  + + + + + +
                                                                                                                                                  + + + + + +
                                                                                                                                                  + +
                                                                                                                                                  Package: grails.buildtestdata.utils
                                                                                                                                                  + +

                                                                                                                                                  [Groovy] Class Basics

                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                    • grails.buildtestdata.utils.Basics +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • + + + +
                                                                                                                                                      + +
                                                                                                                                                      @groovy.transform.CompileStatic
                                                                                                                                                      +class Basics
                                                                                                                                                      +extends java.lang.Object
                                                                                                                                                      + +

                                                                                                                                                      handles creating data for common types when filling fields that are required.

                                                                                                                                                      + +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    + +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • + + + + + + + + + + + + + + + + +
                                                                                                                                                        +
                                                                                                                                                      • +

                                                                                                                                                        Constructor Summary

                                                                                                                                                        +
                                                                                                                                                          + + + + + + + + + + +
                                                                                                                                                          Constructors 
                                                                                                                                                          Constructor and description
                                                                                                                                                          + Basics()
                                                                                                                                                          +
                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      + + + + +
                                                                                                                                                        + +
                                                                                                                                                      • +

                                                                                                                                                        Methods Summary

                                                                                                                                                        +
                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                          Methods 
                                                                                                                                                          Type ParamsReturn TypeName and description
                                                                                                                                                          static java.lang.ClassboxPrimitive(java.lang.Class type)
                                                                                                                                                          static java.lang.ObjectgetArrayValue(java.lang.Class type)
                                                                                                                                                          static java.lang.ObjectgetBasicValue(java.lang.Class type)
                                                                                                                                                          static java.lang.ObjectgetDefaultValue(java.lang.Class type)
                                                                                                                                                          static booleanisSimpleType(java.lang.Class propType)
                                                                                                                                                          +
                                                                                                                                                        +
                                                                                                                                                      • + +
                                                                                                                                                      • +

                                                                                                                                                        Inherited Methods Summary

                                                                                                                                                        +
                                                                                                                                                          + + + + + + + + + + + +
                                                                                                                                                          Inherited Methods 
                                                                                                                                                          Methods inherited from className
                                                                                                                                                          class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                                          +
                                                                                                                                                        +
                                                                                                                                                      • + +
                                                                                                                                                      + +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    + +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • + + + + + + + + + + +
                                                                                                                                                        +
                                                                                                                                                      • + + +

                                                                                                                                                        Constructor Detail

                                                                                                                                                        + + +
                                                                                                                                                          +
                                                                                                                                                        • +

                                                                                                                                                          Basics()

                                                                                                                                                          +

                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        + +
                                                                                                                                                      • +
                                                                                                                                                      + + + + + +
                                                                                                                                                        +
                                                                                                                                                      • + + +

                                                                                                                                                        Method Detail

                                                                                                                                                        + + +
                                                                                                                                                          +
                                                                                                                                                        • +

                                                                                                                                                          static java.lang.Class boxPrimitive(java.lang.Class type)

                                                                                                                                                          +

                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        + + +
                                                                                                                                                          +
                                                                                                                                                        • +

                                                                                                                                                          static java.lang.Object getArrayValue(java.lang.Class type)

                                                                                                                                                          +

                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        + + +
                                                                                                                                                          +
                                                                                                                                                        • +

                                                                                                                                                          static java.lang.Object getBasicValue(java.lang.Class type)

                                                                                                                                                          +

                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        + + +
                                                                                                                                                          +
                                                                                                                                                        • +

                                                                                                                                                          static java.lang.Object getDefaultValue(java.lang.Class type)

                                                                                                                                                          +

                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        + + +
                                                                                                                                                          +
                                                                                                                                                        • +

                                                                                                                                                          static boolean isSimpleType(java.lang.Class propType)

                                                                                                                                                          +

                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        + +
                                                                                                                                                      • +
                                                                                                                                                      + +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    + + + +
                                                                                                                                                    + + + + + +
                                                                                                                                                    + + +
                                                                                                                                                    + + + diff --git a/6.0.x/gapi/grails/buildtestdata/utils/DomainUtil.html b/6.0.x/gapi/grails/buildtestdata/utils/DomainUtil.html new file mode 100644 index 0000000..b132b01 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/utils/DomainUtil.html @@ -0,0 +1,340 @@ + + + + + + + + + + + DomainUtil (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                                    + + + + + +
                                                                                                                                                    + + + + + +
                                                                                                                                                    + +
                                                                                                                                                    Package: grails.buildtestdata.utils
                                                                                                                                                    + +

                                                                                                                                                    [Groovy] Class DomainUtil

                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                      • grails.buildtestdata.utils.DomainUtil +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • + + + +
                                                                                                                                                        + +
                                                                                                                                                        @groovy.transform.CompileStatic
                                                                                                                                                        +class DomainUtil
                                                                                                                                                        +extends java.lang.Object
                                                                                                                                                        + +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      + +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • + + + + + + + + + + + + + + + + +
                                                                                                                                                          +
                                                                                                                                                        • +

                                                                                                                                                          Constructor Summary

                                                                                                                                                          +
                                                                                                                                                            + + + + + + + + + + +
                                                                                                                                                            Constructors 
                                                                                                                                                            Constructor and description
                                                                                                                                                            + DomainUtil()
                                                                                                                                                            +
                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        + + + + +
                                                                                                                                                          + +
                                                                                                                                                        • +

                                                                                                                                                          Methods Summary

                                                                                                                                                          +
                                                                                                                                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                            Methods 
                                                                                                                                                            Type ParamsReturn TypeName and description
                                                                                                                                                            static java.lang.Class[]expandSubclasses(java.lang.Class<?>[] classes)
                                                                                                                                                            static java.lang.ClassfindConcreteSubclass(java.lang.Class abstractClass)
                                                                                                                                                            check the test config for info on what conrete classes to sub in for abstracts
                                                                                                                                                            static org.grails.datastore.mapping.model.PersistentEntitygetPersistentEntity(java.lang.Class clazz)
                                                                                                                                                            static booleanisAbstract(java.lang.Class clazz)
                                                                                                                                                            +
                                                                                                                                                          +
                                                                                                                                                        • + +
                                                                                                                                                        • +

                                                                                                                                                          Inherited Methods Summary

                                                                                                                                                          +
                                                                                                                                                            + + + + + + + + + + + +
                                                                                                                                                            Inherited Methods 
                                                                                                                                                            Methods inherited from className
                                                                                                                                                            class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                                            +
                                                                                                                                                          +
                                                                                                                                                        • + +
                                                                                                                                                        + +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      + +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • + + + + + + + + + + +
                                                                                                                                                          +
                                                                                                                                                        • + + +

                                                                                                                                                          Constructor Detail

                                                                                                                                                          + + +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            DomainUtil()

                                                                                                                                                            +

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          + +
                                                                                                                                                        • +
                                                                                                                                                        + + + + + +
                                                                                                                                                          +
                                                                                                                                                        • + + +

                                                                                                                                                          Method Detail

                                                                                                                                                          + + +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            static java.lang.Class[] expandSubclasses(java.lang.Class<?>[] classes)

                                                                                                                                                            +

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          + + +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            static java.lang.Class findConcreteSubclass(java.lang.Class abstractClass)

                                                                                                                                                            +

                                                                                                                                                            check the test config for info on what conrete classes to sub in for abstracts

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          + + +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            static org.grails.datastore.mapping.model.PersistentEntity getPersistentEntity(java.lang.Class clazz)

                                                                                                                                                            +

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          + + +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            static boolean isAbstract(java.lang.Class clazz)

                                                                                                                                                            +

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          + +
                                                                                                                                                        • +
                                                                                                                                                        + +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      + + + +
                                                                                                                                                      + + + + + +
                                                                                                                                                      + + +
                                                                                                                                                      + + + diff --git a/6.0.x/gapi/grails/buildtestdata/utils/IsoDateUtil.html b/6.0.x/gapi/grails/buildtestdata/utils/IsoDateUtil.html new file mode 100644 index 0000000..c244dd4 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/utils/IsoDateUtil.html @@ -0,0 +1,454 @@ + + + + + + + + + + + IsoDateUtil (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                                      + + + + + +
                                                                                                                                                      + + + + + +
                                                                                                                                                      + +
                                                                                                                                                      Package: grails.buildtestdata.utils
                                                                                                                                                      + +

                                                                                                                                                      [Groovy] Class IsoDateUtil

                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                        • grails.buildtestdata.utils.IsoDateUtil +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • + + + +
                                                                                                                                                          + +
                                                                                                                                                          @java.lang.SuppressWarnings(value: [EmptyCatchBlock])
                                                                                                                                                          +@groovy.transform.CompileStatic
                                                                                                                                                          +class IsoDateUtil
                                                                                                                                                          +extends java.lang.Object
                                                                                                                                                          + +

                                                                                                                                                          Provides a set of methods for parsing/formatting ISO 8601 dates. + https://en.wikipedia.org/wiki/ISO_8601 +

                                                                                                                                                          + +
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                        + +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • + + + + + + + + + + +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            Properties Summary

                                                                                                                                                            +
                                                                                                                                                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                              Properties 
                                                                                                                                                              TypeName and description
                                                                                                                                                              static java.lang.ThreadLocal<java.text.SimpleDateFormat> DATE_TIME_FORMAT
                                                                                                                                                              static java.util.regex.Pattern GMT_MILLIS
                                                                                                                                                              static java.util.regex.Pattern GMT_SECONDS
                                                                                                                                                              static java.util.regex.Pattern LOCAL_DATE
                                                                                                                                                              static java.lang.ThreadLocal<java.text.SimpleDateFormat> LOCAL_DATE_FORMAT
                                                                                                                                                              static java.util.regex.Pattern TZ_LESS
                                                                                                                                                              static java.util.regex.Pattern TZ_LESS_HH_MM
                                                                                                                                                              +
                                                                                                                                                            +
                                                                                                                                                          • + +
                                                                                                                                                          + + + + + + + +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            Constructor Summary

                                                                                                                                                            +
                                                                                                                                                              + + + + + + + + + + +
                                                                                                                                                              Constructors 
                                                                                                                                                              Constructor and description
                                                                                                                                                              + IsoDateUtil()
                                                                                                                                                              +
                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          + + + + +
                                                                                                                                                            + +
                                                                                                                                                          • +

                                                                                                                                                            Methods Summary

                                                                                                                                                            +
                                                                                                                                                              + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                              Methods 
                                                                                                                                                              Type ParamsReturn TypeName and description
                                                                                                                                                              static java.util.Dateparse(java.lang.String date)
                                                                                                                                                              Parse date sent by client (mostly JSON like). +
                                                                                                                                                              static java.time.LocalDateparseLocalDate(java.lang.String date)
                                                                                                                                                              static java.time.LocalDateTimeparseLocalDateTime(java.lang.String date)
                                                                                                                                                              +
                                                                                                                                                            +
                                                                                                                                                          • + +
                                                                                                                                                          • +

                                                                                                                                                            Inherited Methods Summary

                                                                                                                                                            +
                                                                                                                                                              + + + + + + + + + + + +
                                                                                                                                                              Inherited Methods 
                                                                                                                                                              Methods inherited from className
                                                                                                                                                              class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                                              +
                                                                                                                                                            +
                                                                                                                                                          • + +
                                                                                                                                                          + +
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                        + +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • + + + + + + +
                                                                                                                                                            +
                                                                                                                                                          • + + +

                                                                                                                                                            Property Detail

                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static final java.lang.ThreadLocal<java.text.SimpleDateFormat> DATE_TIME_FORMAT

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static final java.util.regex.Pattern GMT_MILLIS

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static final java.util.regex.Pattern GMT_SECONDS

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static final java.util.regex.Pattern LOCAL_DATE

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static final java.lang.ThreadLocal<java.text.SimpleDateFormat> LOCAL_DATE_FORMAT

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static final java.util.regex.Pattern TZ_LESS

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static final java.util.regex.Pattern TZ_LESS_HH_MM

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + +
                                                                                                                                                          • +
                                                                                                                                                          + + + + + + +
                                                                                                                                                            +
                                                                                                                                                          • + + +

                                                                                                                                                            Constructor Detail

                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              IsoDateUtil()

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + +
                                                                                                                                                          • +
                                                                                                                                                          + + + + + +
                                                                                                                                                            +
                                                                                                                                                          • + + +

                                                                                                                                                            Method Detail

                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static java.util.Date parse(java.lang.String date)

                                                                                                                                                              +

                                                                                                                                                              Parse date sent by client (mostly JSON like). + Expected formats: 2000-03-30, 2000-03-30T22:11:22.123Z , 2000-03-30T22:00:00Z or yyyy-MM-dd'T'HH:mm:ss + Assumes all timeZones are UTC + + //see https://stackoverflow.com/questions/10286204/the-right-json-date-format

                                                                                                                                                              throws:
                                                                                                                                                              java.text.ParseException if it cannot recognize a date format
                                                                                                                                                              Parameters:
                                                                                                                                                              date - formatted date
                                                                                                                                                              Returns:
                                                                                                                                                              parsed date

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static java.time.LocalDate parseLocalDate(java.lang.String date)

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              static java.time.LocalDateTime parseLocalDateTime(java.lang.String date)

                                                                                                                                                              +

                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + +
                                                                                                                                                          • +
                                                                                                                                                          + +
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                        + + + +
                                                                                                                                                        + + + + + +
                                                                                                                                                        + + +
                                                                                                                                                        + + + diff --git a/6.0.x/gapi/grails/buildtestdata/utils/MetaHelper.html b/6.0.x/gapi/grails/buildtestdata/utils/MetaHelper.html new file mode 100644 index 0000000..8f051c4 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/utils/MetaHelper.html @@ -0,0 +1,297 @@ + + + + + + + + + + + MetaHelper (Groovy Documentation) + + + + + + + + + + +
                                                                                                                                                        + + + + + +
                                                                                                                                                        + + + + + +
                                                                                                                                                        + +
                                                                                                                                                        Package: grails.buildtestdata.utils
                                                                                                                                                        + +

                                                                                                                                                        [Groovy] Class MetaHelper

                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                          • grails.buildtestdata.utils.MetaHelper +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • + + + +
                                                                                                                                                            + +
                                                                                                                                                            class MetaHelper
                                                                                                                                                            +extends java.lang.Object
                                                                                                                                                            + +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • + + + + + + + + + + + + + + + + +
                                                                                                                                                              +
                                                                                                                                                            • +

                                                                                                                                                              Constructor Summary

                                                                                                                                                              +
                                                                                                                                                                + + + + + + + + + + +
                                                                                                                                                                Constructors 
                                                                                                                                                                Constructor and description
                                                                                                                                                                + MetaHelper()
                                                                                                                                                                +
                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            + + + + +
                                                                                                                                                              + +
                                                                                                                                                            • +

                                                                                                                                                              Methods Summary

                                                                                                                                                              +
                                                                                                                                                                + + + + + + + + + + + + + + +
                                                                                                                                                                Methods 
                                                                                                                                                                Type ParamsReturn TypeName and description
                                                                                                                                                                static voidaddBuildMetaMethods(java.lang.Class<?>[] entityClasses)
                                                                                                                                                                +
                                                                                                                                                              +
                                                                                                                                                            • + +
                                                                                                                                                            • +

                                                                                                                                                              Inherited Methods Summary

                                                                                                                                                              +
                                                                                                                                                                + + + + + + + + + + + +
                                                                                                                                                                Inherited Methods 
                                                                                                                                                                Methods inherited from className
                                                                                                                                                                class java.lang.Objectjava.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
                                                                                                                                                                +
                                                                                                                                                              +
                                                                                                                                                            • + +
                                                                                                                                                            + +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • + + + + + + + + + + +
                                                                                                                                                              +
                                                                                                                                                            • + + +

                                                                                                                                                              Constructor Detail

                                                                                                                                                              + + +
                                                                                                                                                                +
                                                                                                                                                              • +

                                                                                                                                                                MetaHelper()

                                                                                                                                                                +

                                                                                                                                                                +
                                                                                                                                                              • +
                                                                                                                                                              + +
                                                                                                                                                            • +
                                                                                                                                                            + + + + + +
                                                                                                                                                              +
                                                                                                                                                            • + + +

                                                                                                                                                              Method Detail

                                                                                                                                                              + + +
                                                                                                                                                                +
                                                                                                                                                              • +

                                                                                                                                                                static void addBuildMetaMethods(java.lang.Class<?>[] entityClasses)

                                                                                                                                                                +

                                                                                                                                                                +
                                                                                                                                                              • +
                                                                                                                                                              + +
                                                                                                                                                            • +
                                                                                                                                                            + +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          + + + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +
                                                                                                                                                          + + + diff --git a/6.0.x/gapi/grails/buildtestdata/utils/package-frame.html b/6.0.x/gapi/grails/buildtestdata/utils/package-frame.html new file mode 100644 index 0000000..f1c15a6 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/utils/package-frame.html @@ -0,0 +1,58 @@ + + + + + grails.buildtestdata.utils + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/6.0.x/gapi/grails/buildtestdata/utils/package-summary.html b/6.0.x/gapi/grails/buildtestdata/utils/package-summary.html new file mode 100644 index 0000000..9aab9c3 --- /dev/null +++ b/6.0.x/gapi/grails/buildtestdata/utils/package-summary.html @@ -0,0 +1,169 @@ + + + + + +grails.buildtestdata.utils (Groovy Documentation) + + + + + + + + + + + + + +
                                                                                                                                                          + + + + + + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          +

                                                                                                                                                          Package grails.buildtestdata.utils

                                                                                                                                                          +
                                                                                                                                                          + + + +
                                                                                                                                                          + + + + +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                            Class Summary 
                                                                                                                                                            ClassDescription
                                                                                                                                                            + + Basics + + handles creating data for common types when filling fields that are required.
                                                                                                                                                            + + DomainUtil + +
                                                                                                                                                            + + IsoDateUtil + + Provides a set of methods for parsing/formatting ISO 8601 dates. +
                                                                                                                                                            + + MetaHelper + +
                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          + + + + + + + +
                                                                                                                                                          + + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + + + + diff --git a/6.0.x/gapi/groovy.ico b/6.0.x/gapi/groovy.ico new file mode 100644 index 0000000000000000000000000000000000000000..9e9b8d81a21db6c99daf3cd76320407a45a1b0d5 GIT binary patch literal 9662 zcmeHMd0fuv7JqxQju}i0qd^U!MD}4y`@Ygb`=*7`UX+R!T9s1LN(PmZrHyQnjA76e zm5NdsJC$|ZJI1-^{HC}2zOUEFa_`(f?$77z`Tc(H^PJ~<&U4Or&hv}K62gBoXR`2r zan_zmEY>I%izSJ`S1daOz5oC9UKS9--fV<0ALt$Z_P=%!r~Zhc2vGzr|91!lgklfq zp5D=K)Q9@gn7>mWvM2GFh)_l74;t9t@T)IBcM=^n-20nRUj~0OYIw-kBZv8q9RB(8 zA%h243keA=!G6v?pfNO-WRR@?)a+>X(z7LNr_P>IJw-;ML1Ln4hq&m-m)N&^>}ZjrUymFbjJlek3>SnQ$wH9K|D+zY z)`JmJLk17jm6iqVB(1(T$40k$!W6Okv7^8Ihv-+sONW2)nKjDf=pofJ$EWryvWrOne!{Y|B*%v@ zkeS%|z3j9GGpCGOuJWB!m&#JL8s*fWSGq-sVEp3_Fu%O_ zPtM5KrnMAoZj}8su#a^M>W2D|E~GcDi9vY^C`7uoj~z4OHpY7)o824d<3B{$o$C5ngliRr;}riv|Iq&(}X`WpK-m2Dx6uXA&M8>bI> zPkN9~nO`Xc<1^Wyl^^p@@k!$vF(!5+Z;A(sY074oUElr zijDFKey_C(Vi}uQH0)=5=50L4mnk19rmTUv!A>CKVGh$>mx7F&8O#Z=2e~*OAXyZ% zZ&qW~IB}g~|rkE{a$3d6Gx` zNIw7E6vLEDrI(w)WOJ=|!%_$4t#by0qp1Sr(HxYADM#oQCxYaHX|>}{unEbSp$u)xfhSr*F+b7-vbej|Cz~ml&o6uae-bPj1 zK_xY?TU>O+3*4s-khdLz>Lo!JTX~-30!JhHmr7CY&s4XEGX6k&sUX{v{287WZ*oWb z&P84nH55EKXf?H9?# zEwk6DlTTa)nt9Po9KFr&7i?Jh26ys%T6cbX(lc=~tlS3QN4djf)R9{kL1Q>;Ky`^i zw8!lUW50TW^@|>IS49j!@LU7?_Z#MFs@!CVbr{)B=U@UX!J379k>BqrCMH{G^Kh6S z?!xS6g1Ga)o9Sc4GnRamzYh}!xGxX~&HNacgf%SIuFH@#?P>fzB&4%&`YbO?^?xYF zc>a^}J=Kns?YsmMhCMLfloAT!!%JJO3OZST_G6eFc zxThRQd6?Fe18FBC9vOoChxDd(r#g$`MmfpM`UN}bAGZv1Zc<40XZA^|rKmRKw?E}WZVr;R`fv2%aFLDm;_1shj&na1*Mee< zGlsk6@TVG^e0sX%_KE#=sLCwN`Rcp)E2ReUaFVn$cq6_!9H^$0 zi}zvb3CgY9n77uMsVT^|oc{bRKmQrh;_Z0uv_aBJ2yXtu8{CX4tk*AZqBW;{MgAkm z{^ZLX+fhrg{5JdX^LgKA4u3i;sqF}dS<>RSkw4Yb{Qkp^@-*JRV*T<4&fY~aBPf1# z4r~HR3muTcJxJP052UU2!Qx^bIJTAd84lQ&u&nJc13QdW0>6I5pW>J5QI)I^m@`%U z8GgHNZe@--(OFHYjGx+1bgzp^Y|_ZyZz%|BBZ?% zEH|y=8Mm@H3qo;R(5)(F{b()h(XYsND6Z(-q+PfXl&rLCzMnC14|1nEl)rvpEs&Wo zC}W-NEsGfU4%!1a=N5`#`_?jMo&At|^xbn1-SHzhC5D52WMD6r#RNm}+5HfE_h*5K zx%Crx=B4!Z=Zp2*EciA^YJK*!idqc0H=^ zMb>rnr~Nx2JbP=O5w$lPvRcmd%HYV`@vsh(?_C1d)^f0@!MH`+W8Qg*-=Df?ONr6G z`>yjND>KASw;;~7TP4EnCGEv}`xC(CLLLO(sDPY@^^o6r6$&~Vd656;D(q-H3n>*v zu&Hn-#N};&6ZzSYTwVyl*Z; zvl$BS)Iok*HSB4*2>Gp-VDHUZIPkFX-+iz@zl{ATw*c+1vEwY*p3ei_{qdl_(d&_c z(##jLCCBR`ufBdiVQmStk|^5j-szIy-Ab{ny*mnQt9C(B`%iH2Q4^GOU5C={7AX4! zAUUPo*P#gYF1S|@-nGSGT$TbVX~D0IbQZMeDa?pR?zGJFI zPWgCWFeumvuICFN@6Kf?>%0c#-K}us@r{oL$vM>30!0rRA-bso%#Ngk`nFIovDUh5 zqCWTRXM+YTK+^B~{gCuzA53%$Ka}coS0~#2xxywtFx(pt-WT@4-n(^h1m`@C{Et6w zgA-5Mq2fJo0>{ue8h@m-1rFVBg3V2pU{Rh9npht$aa&Svu08(-o)_hj2ko^2^Cgjd z$Hgv5@<=F8_q}Jb(X&&2qYo^~i2;|YT-ecm5su;972R!c@^L$ydeYI0O1x+Aw5R3z z?G)-s{VTfK;Mk)UD8ADG;WdZBv?K*IvO-^5x){~k=*xECUPau;BR-TnqZ)pX6D~>i z3_hCf`@}cd_nKU!2WVx6fn`}5tg9)5J-2G1qO%oFb+^Om#~pAQxpGkT_ z^dx;Bq0iiHWb(iB$(^t`KMr(K);x8z(Q0rol)r+1<5`H4e~jH3?p*(|46`MbESk;V6ZC+EDxoF_xXL0*nArDeyxSW51OH}vkgvnp*{@o9-mJmU>Je&{b{u(p;^}$w)C5zjsoO|CE0};;12%8e}!LEX6Cg zJk95M(pJA3y*TgZ3JHFowJnT^4fC>8u&c-hr>Y$AIJXzPf8GaPsGG}=d0>C?2e2&9 z028dW^>U&?Gkx7_ix`jVK90IA`0b$GMo*T`RbmLrGu+=sIP-t1mc1*&QLZ@2qoj0; z=gVDNyy|_Dd>VB(`8`v_HBrWIDH^zEXzo}KT0d++tOw2P^`Mp!0_v$juT2wuZ+ZmV zRR^swxVOeZr^C%mWsTUF5fVs_>Vl8*_4ibey*0>667y_mVZ7_5y>YI;=f>tN*Dltf6ZcrQ2P=S1hw5*2vXaI z2B!8D8kX8n)Pq`VSRpJH4rAI^)GD%AOe@A>p%^C9FfCS;D2}NtdD?+J@3C#8-#?&b z}m;ecO8UN5KQ>Jqlv%!?72H3NiMBSBihO MWNGZjTrAeV03kgoZ~y=R literal 0 HcmV?d00001 diff --git a/6.0.x/gapi/help-doc.html b/6.0.x/gapi/help-doc.html new file mode 100644 index 0000000..f007422 --- /dev/null +++ b/6.0.x/gapi/help-doc.html @@ -0,0 +1,196 @@ + + + + + + + + + API Help (Groovy Documentation) + + + + + + + + + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + + +
                                                                                                                                                          +

                                                                                                                                                          How This API Document Is Organized

                                                                                                                                                          +
                                                                                                                                                          This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            Overview

                                                                                                                                                            +

                                                                                                                                                            The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Package

                                                                                                                                                            +

                                                                                                                                                            Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • Interfaces (italic)
                                                                                                                                                            • +
                                                                                                                                                            • Classes
                                                                                                                                                            • +
                                                                                                                                                            • Enums
                                                                                                                                                            • +
                                                                                                                                                            • Exceptions
                                                                                                                                                            • +
                                                                                                                                                            • Errors
                                                                                                                                                            • +
                                                                                                                                                            • Annotation Types
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Class/Interface

                                                                                                                                                            +

                                                                                                                                                            Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • Class inheritance diagram
                                                                                                                                                            • +
                                                                                                                                                            • Direct Subclasses
                                                                                                                                                            • +
                                                                                                                                                            • All Known Subinterfaces
                                                                                                                                                            • +
                                                                                                                                                            • All Known Implementing Classes
                                                                                                                                                            • +
                                                                                                                                                            • Class/interface declaration
                                                                                                                                                            • +
                                                                                                                                                            • Class/interface description
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • Nested Class Summary
                                                                                                                                                            • +
                                                                                                                                                            • Field Summary
                                                                                                                                                            • +
                                                                                                                                                            • Constructor Summary
                                                                                                                                                            • +
                                                                                                                                                            • Method Summary
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • Field Detail
                                                                                                                                                            • +
                                                                                                                                                            • Constructor Detail
                                                                                                                                                            • +
                                                                                                                                                            • Method Detail
                                                                                                                                                            • +
                                                                                                                                                            +

                                                                                                                                                            Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Annotation Type

                                                                                                                                                            +

                                                                                                                                                            Each annotation type has its own separate page with the following sections:

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • Annotation Type declaration
                                                                                                                                                            • +
                                                                                                                                                            • Annotation Type description
                                                                                                                                                            • +
                                                                                                                                                            • Required Element Summary
                                                                                                                                                            • +
                                                                                                                                                            • Optional Element Summary
                                                                                                                                                            • +
                                                                                                                                                            • Element Detail
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Enum

                                                                                                                                                            +

                                                                                                                                                            Each enum has its own separate page with the following sections:

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • Enum declaration
                                                                                                                                                            • +
                                                                                                                                                            • Enum description
                                                                                                                                                            • +
                                                                                                                                                            • Enum Constant Summary
                                                                                                                                                            • +
                                                                                                                                                            • Enum Constant Detail
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                          • + +
                                                                                                                                                          • +

                                                                                                                                                            Deprecated API

                                                                                                                                                            +

                                                                                                                                                            The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Index

                                                                                                                                                            +

                                                                                                                                                            The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Frames/No Frames

                                                                                                                                                            +

                                                                                                                                                            These links show and hide the HTML frames. All pages are available with or without frames.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            All Classes

                                                                                                                                                            +

                                                                                                                                                            The All Classes link shows all classes and interfaces except non-static nested types.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Serialized Form

                                                                                                                                                            +

                                                                                                                                                            Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Constant Field Values

                                                                                                                                                            +

                                                                                                                                                            The Constant Field Values page lists the static final fields and their values.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          + This help file applies to API documentation generated using the standard doclet.
                                                                                                                                                          + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + + + diff --git a/6.0.x/gapi/index-all.html b/6.0.x/gapi/index-all.html new file mode 100644 index 0000000..b0e59c3 --- /dev/null +++ b/6.0.x/gapi/index-all.html @@ -0,0 +1,897 @@ + + + + + + + + Index (Groovy Documentation) + + + + + + + + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +
                                                                                                                                                          + +A + +B + +C + +D + +E + +F + +G + +H + +I + +J + +K + +L + +M + +N + +O + +P + +Q + +R + +S + +T + +U + +V + +W + +X + +Y + +Z + +_ + + + + +

                                                                                                                                                          A

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          abstractDefault - Property in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          AbstractHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          AbstractHandler() - Constructor in AbstractHandler +
                                                                                                                                                          +
                                                                                                                                                          addBuildMetaMethods(Class<?>) - Method in MetaHelper +
                                                                                                                                                          +
                                                                                                                                                          applyBiDirectionManyToOnes(org.grails.datastore.gorm.GormEntity) - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          AssociationMinSizeHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          AssociationMinSizeHandler(org.grails.datastore.mapping.model.PersistentEntity) - Constructor in AssociationMinSizeHandler +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          B

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          Basics - Class in grails.buildtestdata.utils +
                                                                                                                                                          handles creating data for common types when filling fields that are required.
                                                                                                                                                          +
                                                                                                                                                          Basics() - Constructor in Basics +
                                                                                                                                                          +
                                                                                                                                                          BlankConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          BlankConstraintHandler() - Constructor in BlankConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          boxPrimitive(java.lang.Class) - Method in Basics +
                                                                                                                                                          +
                                                                                                                                                          Build - Annotation Type in grails.buildtestdata.mixin +
                                                                                                                                                          +
                                                                                                                                                          build(java.util.Map, Map<String, Object>) - Method in BuildDomainTest +
                                                                                                                                                          +
                                                                                                                                                          build(java.util.Map, grails.buildtestdata.builders.DataBuilderContext) - Method in DataBuilder +
                                                                                                                                                          builds the data using the passed in context
                                                                                                                                                          +
                                                                                                                                                          build(java.lang.Class) - Method in DataBuilderFactory +
                                                                                                                                                          +
                                                                                                                                                          build(java.util.Map, grails.buildtestdata.builders.DataBuilderContext) - Method in PersistentEntityDataBuilder +
                                                                                                                                                          builds the data using the passed in context
                                                                                                                                                          +
                                                                                                                                                          build(java.lang.Class) - Method in PersistentEntityDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          build(java.util.Map, grails.buildtestdata.builders.DataBuilderContext) - Method in PogoDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          build(java.lang.Class) - Method in PogoDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          build(java.util.Map, Class<T>, Map<String, Object>) - Method in TestData +
                                                                                                                                                          finds a DataBuilder for the entityClass an calls build. see PersistentEntityDataBuilder.build for example
                                                                                                                                                          +
                                                                                                                                                          build(java.util.Map, Class<T>, Map<String, Object>) - Method in TestDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          build(java.util.Map, grails.buildtestdata.builders.DataBuilderContext) - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          build(java.lang.Class) - Method in ValidateableDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          BuildDataTest - Trait in grails.buildtestdata +
                                                                                                                                                          Unit tests should implement this trait to add build-test-data functionality. +
                                                                                                                                                          +
                                                                                                                                                          BuildDomainTest - Trait in grails.buildtestdata +
                                                                                                                                                          Should works as a drop in replacement for the Grails Testing Support's + grails.testing.gorm.DomainUnitTest for testing a single entity using Generics + Its walks the tree so if you have a Book that has a required Author association you only need to do + implement BuildDomainTest and it will take care of mocking the Author for you.
                                                                                                                                                          +
                                                                                                                                                          builders - Property in TestData +
                                                                                                                                                          +
                                                                                                                                                          BuildHibernateTest - Trait in grails.buildtestdata +
                                                                                                                                                          Support build test data functionality for unit tests that extend HibernateSpec
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          C

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          cleanupTestDataBuilder() - Method in TestDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          clear() - Method in TestData +
                                                                                                                                                          +
                                                                                                                                                          ClosurePropsResolver - Class in grails.buildtestdata.propsresolver +
                                                                                                                                                          +
                                                                                                                                                          ClosurePropsResolver(Map<Class, Closure>) - Constructor in ClosurePropsResolver +
                                                                                                                                                          +
                                                                                                                                                          config - Property in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          configSlurper - Property in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          CONSTRAINT_SORT_ORDER - Property in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          ConstraintHandler - Interface in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          ConstraintHandlerException - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          ConstraintHandlerException(java.lang.String) - Constructor in ConstraintHandlerException +
                                                                                                                                                          +
                                                                                                                                                          createBuilder(java.lang.Class) - Method in TestData +
                                                                                                                                                          creates a new DataBuilder by looking through the factories for one that supports the class.
                                                                                                                                                          +
                                                                                                                                                          createCopy(java.lang.String) - Method in DataBuilderContext +
                                                                                                                                                          Clones this context and sets drills down the for the property if it exists
                                                                                                                                                          +
                                                                                                                                                          CreditCardConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          CreditCardConstraintHandler() - Constructor in CreditCardConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          D

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          data - Property in DataBuilderContext +
                                                                                                                                                          +
                                                                                                                                                          data - Property in MapPropsResolver +
                                                                                                                                                          +
                                                                                                                                                          dataBinder - Property in PogoDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          DataBuilder - Interface in grails.buildtestdata.builders +
                                                                                                                                                          +
                                                                                                                                                          DataBuilderContext - Class in grails.buildtestdata.builders +
                                                                                                                                                          a context object that is passed around + holds the data and caches the know instances that are already created
                                                                                                                                                          +
                                                                                                                                                          DataBuilderContext(Map<String, ?>) - Constructor in DataBuilderContext +
                                                                                                                                                          +
                                                                                                                                                          DataBuilderFactory - Interface in grails.buildtestdata.builders +
                                                                                                                                                          +
                                                                                                                                                          DATE_TIME_FORMAT - Property in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          defaultHandlers - Property in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          DependencyDataTest - Trait in grails.buildtestdata.testing +
                                                                                                                                                          Overrides the mockDomains on DataTest to mock the dependency tree
                                                                                                                                                          +
                                                                                                                                                          determineBasicValue(java.lang.String, grails.gorm.validation.ConstrainedProperty) - Method in NullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          determineNonStandardValue(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in NullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          determineNonStandardValue(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in PersistentEntityNullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          doBuild(grails.buildtestdata.builders.DataBuilderContext) - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          doBuild(grails.buildtestdata.builders.DataBuilderContext) - Method in PogoDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          DomainUtil - Class in grails.buildtestdata.utils +
                                                                                                                                                          +
                                                                                                                                                          DomainUtil() - Constructor in DomainUtil +
                                                                                                                                                          +
                                                                                                                                                          doWithTestDataConfig() - Method in TestDataBuilder +
                                                                                                                                                          Override this to override test data configuration for this test class
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          E

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          EmailConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          EmailConstraintHandler() - Constructor in EmailConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          entitySave - Property in PersistentEntityDataBuilder +
                                                                                                                                                          allows implementing tools to replace the closure for any special saving requirements
                                                                                                                                                          +
                                                                                                                                                          ExampleConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          ExampleConstraintHandler() - Constructor in ExampleConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          exampleMetaConstraints(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          expandSubclasses(Class<?>) - Method in DomainUtil +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          F

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          factories - Property in TestData +
                                                                                                                                                          +
                                                                                                                                                          findBuilder(java.lang.Class) - Method in TestData +
                                                                                                                                                          Find in cache or create a builder
                                                                                                                                                          +
                                                                                                                                                          findConcreteSubclass(java.lang.Class) - Method in DomainUtil +
                                                                                                                                                          check the test config for info on what conrete classes to sub in for abstracts
                                                                                                                                                          +
                                                                                                                                                          findInStore(grails.buildtestdata.builders.DataBuilderContext) - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          findMissingConfigValues(java.util.Map, java.lang.Object) - Method in PogoDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          findOrBuild(Class<T>, Map<String, Object>) - Method in TestData +
                                                                                                                                                          tried to find the an existing entity in the store, otherwise build its
                                                                                                                                                          +
                                                                                                                                                          findOrBuild(Class<T>, Map<String, Object>) - Method in TestDataBuilder +
                                                                                                                                                          calls TestData.build with [find: true] passed to args
                                                                                                                                                          +
                                                                                                                                                          findPropsToSaveFirst() - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          findRequiredAssociations() - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          findRequiredDomainClasses() - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          findRequiredPropertyNames() - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          G

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          getAbstractDefaultFor(java.lang.String) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          getAbstractDefaultFor(java.lang.String) - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          getArrayValue(java.lang.Class) - Method in Basics +
                                                                                                                                                          +
                                                                                                                                                          getBasicValue(java.lang.Class) - Method in Basics +
                                                                                                                                                          +
                                                                                                                                                          getConfigFor(java.lang.String) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          getConfigFor(java.lang.String) - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          getConfigPropertyNames(java.lang.String) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          getConfigPropertyNames(java.lang.String) - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          getConstraintsMap() - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          getConstraintsMap() - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          getConstraintsPropertyNames() - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          getDefaultTestDataConfigResource() - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          getDefaultValue(java.lang.Class) - Method in Basics +
                                                                                                                                                          +
                                                                                                                                                          getDomain(java.util.Map) - Method in BuildDomainTest +
                                                                                                                                                          keeps the method consistent with DomainUnitTest with the exception that this calls save(failOnError:true) by default + to change just pass in args. getDomain(save: false) for example will set it up and not call save at all. +
                                                                                                                                                          +
                                                                                                                                                          getDomainClasses() - Method in BuildHibernateTest +
                                                                                                                                                          HibernateSpec must already override this method to provide the domains they are using
                                                                                                                                                          +
                                                                                                                                                          getDomainClassesToMock() - Method in BuildDomainTest +
                                                                                                                                                          this is called by the org.grails.testing.gorm.spock.DataTestSetupSpecInterceptor
                                                                                                                                                          +
                                                                                                                                                          getEntity(java.util.Map) - Method in BuildDomainTest +
                                                                                                                                                          an entity instance of the Gorm class set as the generic. both getDomain and getEntity are the same thing
                                                                                                                                                          +
                                                                                                                                                          getEntityClass() - Method in BuildDomainTest +
                                                                                                                                                          +
                                                                                                                                                          getExampleContraintValue(java.lang.Object) - Method in ExampleConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          getFieldsToBuild(grails.buildtestdata.builders.DataBuilderContext) - Method in ValidateableDataBuilder +
                                                                                                                                                          combines the includes if it exists with the requiredPropertyNames and removed any data binding overrides + that would have already occurred from the ctx
                                                                                                                                                          +
                                                                                                                                                          getInitialProps(java.lang.Class) - Method in ClosurePropsResolver +
                                                                                                                                                          +
                                                                                                                                                          getInitialProps(java.lang.Class) - Method in InitialPropsResolver +
                                                                                                                                                          +
                                                                                                                                                          getInitialProps(java.lang.Class) - Method in InitialPropsResolver.EmptyInitialPropsResolver +
                                                                                                                                                          +
                                                                                                                                                          getInitialProps(java.lang.Class) - Method in MapPropsResolver +
                                                                                                                                                          +
                                                                                                                                                          getInitialPropsResolver() - Method in TestData +
                                                                                                                                                          +
                                                                                                                                                          getMappingContext() - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          getNewInstance() - Method in PogoDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          getPersistentEntity(java.lang.Class) - Method in DomainUtil +
                                                                                                                                                          +
                                                                                                                                                          getPersistentEntity() - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          getPropertyValues(java.lang.String, java.lang.Object, Set<String>, Map<String, Object>) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          getPropertyValues(java.lang.String, java.lang.Object, Set<String>, Map<String, Object>) - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          getSuppliedPropertyValue(Map<String, Object>, java.lang.String, java.lang.String, java.lang.Object) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          getSuppliedPropertyValue(Map<String, Object>, java.lang.String, java.lang.String) - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          getUnitAdditionalBuildFor(java.lang.String) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          getUnitAdditionalBuildFor(java.lang.String) - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          getValue(java.lang.Object, java.lang.String) - Method in AbstractHandler +
                                                                                                                                                          +
                                                                                                                                                          GMT_MILLIS - Property in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          GMT_SECONDS - Property in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          H

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          handle(java.lang.Object, java.lang.String) - Method in AbstractHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext, int, java.lang.Object) - Method in AssociationMinSizeHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty) - Method in BlankConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in ConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String) - Method in CreditCardConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String) - Method in EmailConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in ExampleConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty) - Method in InListConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty) - Method in MatchesConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty) - Method in MaxConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in MaxSizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty) - Method in MinConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext, int, java.lang.Object) - Method in MinSizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in NullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty) - Method in RangeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in SizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty) - Method in UniqueConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String) - Method in UrlConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handle(java.lang.Object, java.lang.String, grails.gorm.validation.Constraint, grails.gorm.validation.ConstrainedProperty) - Method in ValidatorConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          handleBuildAnnotation() - Method in BuildDataTest +
                                                                                                                                                          +
                                                                                                                                                          handlers - Property in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          I

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          includes - Property in DataBuilderContext +
                                                                                                                                                          +
                                                                                                                                                          initialize(org.springframework.core.io.Resource) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          initialProps - Property in ClosurePropsResolver +
                                                                                                                                                          +
                                                                                                                                                          InitialPropsResolver - Interface in grails.buildtestdata.propsresolver +
                                                                                                                                                          +
                                                                                                                                                          InitialPropsResolver.EmptyInitialPropsResolver - Class in grails.buildtestdata.propsresolver +
                                                                                                                                                          +
                                                                                                                                                          InitialPropsResolver.EmptyInitialPropsResolver() - Constructor in InitialPropsResolver.EmptyInitialPropsResolver +
                                                                                                                                                          +
                                                                                                                                                          initialPropsResolver - Property in TestData +
                                                                                                                                                          +
                                                                                                                                                          InListConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          InListConstraintHandler() - Constructor in InListConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          isAbstract(java.lang.Class) - Method in DomainUtil +
                                                                                                                                                          +
                                                                                                                                                          IsoDateUtil - Class in grails.buildtestdata.utils +
                                                                                                                                                          Provides a set of methods for parsing/formatting ISO 8601 dates. +
                                                                                                                                                          +
                                                                                                                                                          IsoDateUtil() - Constructor in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          isRequiredConstrained(grails.gorm.validation.Constrained) - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          isSatisfied(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty) - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          isSimpleType(java.lang.Class) - Method in Basics +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          J

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          + + + +

                                                                                                                                                          K

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          knownInstances - Property in DataBuilderContext +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          L

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          loadTestDataConfig() - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          LOCAL_DATE_FORMAT - Property in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          LOCAL_DATE - Property in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          M

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          mappingContext - Property in PersistentEntityNullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          MapPropsResolver - Class in grails.buildtestdata.propsresolver +
                                                                                                                                                          +
                                                                                                                                                          MapPropsResolver(java.util.Map) - Constructor in MapPropsResolver +
                                                                                                                                                          +
                                                                                                                                                          MatchesConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          MatchesConstraintHandler() - Constructor in MatchesConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          MaxConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          MaxConstraintHandler() - Constructor in MaxConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          MaxSizeConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          MaxSizeConstraintHandler() - Constructor in MaxSizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          maxSizeConstraintHandler - Property in SizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          mergeConfig(groovy.util.ConfigObject) - Method in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          mergeConfig(groovy.lang.Closure) - Method in TestDataConfigurationHolder +
                                                                                                                                                          Takes a testDataConfig { ... } block that is merged over the default values
                                                                                                                                                          +
                                                                                                                                                          MetaHelper - Class in grails.buildtestdata.utils +
                                                                                                                                                          +
                                                                                                                                                          MetaHelper() - Constructor in MetaHelper +
                                                                                                                                                          +
                                                                                                                                                          MinConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          MinConstraintHandler() - Constructor in MinConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          MinSizeConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          MinSizeConstraintHandler() - Constructor in MinSizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          minSizeConstraintHandler - Property in SizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          mockDependencyGraph(Set<Class>, Class<?>) - Method in DependencyDataTest +
                                                                                                                                                          +
                                                                                                                                                          mockDomains(Class<?>) - Method in BuildDataTest +
                                                                                                                                                          +
                                                                                                                                                          mockDomains(Class<?>) - Method in DependencyDataTest +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          N

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          NullableConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          NullableConstraintHandler() - Constructor in NullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          O

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          onMockDomains(Class<?>) - Method in DependencyDataTest +
                                                                                                                                                          Empty, override in traits or the implemented tests. +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          P

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          pad(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext, int) - Method in MaxSizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          parse(java.lang.String) - Method in IsoDateUtil +
                                                                                                                                                          Parse date sent by client (mostly JSON like). +
                                                                                                                                                          +
                                                                                                                                                          parseLocalDate(java.lang.String) - Method in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          parseLocalDateTime(java.lang.String) - Method in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          persistentEntity - Property in AssociationMinSizeHandler +
                                                                                                                                                          +
                                                                                                                                                          persistentEntity - Property in PersistentEntityNullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          PersistentEntityDataBuilder - Class in grails.buildtestdata.builders +
                                                                                                                                                          +
                                                                                                                                                          PersistentEntityDataBuilder.Factory - Class in grails.buildtestdata.builders +
                                                                                                                                                          +
                                                                                                                                                          PersistentEntityDataBuilder.Factory() - Constructor in PersistentEntityDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          PersistentEntityDataBuilder(java.lang.Class) - Constructor in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          PersistentEntityNullableConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          PersistentEntityNullableConstraintHandler(org.grails.datastore.mapping.model.PersistentEntity, org.grails.datastore.mapping.model.MappingContext) - Constructor in PersistentEntityNullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          PogoDataBuilder - Class in grails.buildtestdata.builders +
                                                                                                                                                          +
                                                                                                                                                          PogoDataBuilder.Factory - Class in grails.buildtestdata.builders +
                                                                                                                                                          +
                                                                                                                                                          PogoDataBuilder.Factory() - Constructor in PogoDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          PogoDataBuilder(java.lang.Class) - Constructor in PogoDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          populateRequiredValues(java.lang.Object, grails.buildtestdata.builders.DataBuilderContext) - Method in ValidateableDataBuilder +
                                                                                                                                                          primary entry method for populating the entity data
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          Q

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          + + + +

                                                                                                                                                          R

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          RangeConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          RangeConstraintHandler() - Constructor in RangeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          requiredDomainClasses - Property in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          requiredPropertyNames - Property in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          reset() - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          S

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          sampleData - Property in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          satisfyConstrained(java.lang.Object, java.lang.String, grails.gorm.validation.ConstrainedProperty, grails.buildtestdata.builders.DataBuilderContext) - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          satisfyNested(java.lang.Object, java.lang.String, java.lang.Class, boolean) - Method in DataBuilderContext +
                                                                                                                                                          Parameters:
                                                                                                                                                          instance - the instance to use
                                                                                                                                                          +
                                                                                                                                                          satisfyNestedWithNew(java.lang.Object, java.lang.String, java.lang.Class) - Method in DataBuilderContext +
                                                                                                                                                          doesn't use knownInstances cache and creates a new object for the property
                                                                                                                                                          +
                                                                                                                                                          save(org.grails.datastore.gorm.GormEntity, grails.buildtestdata.builders.DataBuilderContext, java.util.Map) - Method in PersistentEntityDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          setSampleData(Map<String, Object>) - Method in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          setupBuildMethods() - Method in BuildHibernateTest +
                                                                                                                                                          +
                                                                                                                                                          setupCustomTestDataConfig() - Method in TestDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          setValue(java.lang.Object, java.lang.String, java.lang.Object) - Method in AbstractHandler +
                                                                                                                                                          +
                                                                                                                                                          setValue(java.lang.Object, java.lang.String, java.lang.Object) - Method in PersistentEntityNullableConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          SizeConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          SizeConstraintHandler() - Constructor in SizeConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          sortedConstraints(Collection<Constraint>) - Method in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          supports(java.lang.Class) - Method in DataBuilderFactory +
                                                                                                                                                          +
                                                                                                                                                          supports(java.lang.Class) - Method in PersistentEntityDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          supports(java.lang.Class) - Method in PogoDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          supports(java.lang.Class) - Method in ValidateableDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          T

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          target - Property in DataBuilderContext +
                                                                                                                                                          +
                                                                                                                                                          targetClass - Property in PogoDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          TestData - Class in grails.buildtestdata +
                                                                                                                                                          Primary static API to build a domain instance with test data
                                                                                                                                                          +
                                                                                                                                                          TestData() - Constructor in TestData +
                                                                                                                                                          +
                                                                                                                                                          TestDataBuilder - Trait in grails.buildtestdata +
                                                                                                                                                          Integration tests, any class really, can implement this trait to add build-test-data functionality
                                                                                                                                                          +
                                                                                                                                                          TestDataConfiguration - Class in grails.buildtestdata +
                                                                                                                                                          +
                                                                                                                                                          TestDataConfiguration(org.springframework.core.io.Resource) - Constructor in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          TestDataConfigurationHolder - Class in grails.buildtestdata +
                                                                                                                                                          +
                                                                                                                                                          TestDataConfigurationHolder() - Constructor in TestDataConfigurationHolder +
                                                                                                                                                          +
                                                                                                                                                          TZ_LESS_HH_MM - Property in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          TZ_LESS - Property in IsoDateUtil +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          U

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          UniqueConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          UniqueConstraintHandler() - Constructor in UniqueConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          unitAdditionalBuild - Property in TestDataConfiguration +
                                                                                                                                                          +
                                                                                                                                                          UnitTestDataBuilder - Trait in grails.buildtestdata +
                                                                                                                                                          +
                                                                                                                                                          UrlConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          UrlConstraintHandler() - Constructor in UrlConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          V

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          ValidateableDataBuilder - Class in grails.buildtestdata.builders +
                                                                                                                                                          DataBuilder to build test data for any
                                                                                                                                                          Validateable:
                                                                                                                                                          and command objects. not just Gorm persistence entities.
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          ValidateableDataBuilder.Factory - Class in grails.buildtestdata.builders +
                                                                                                                                                          +
                                                                                                                                                          ValidateableDataBuilder.Factory() - Constructor in ValidateableDataBuilder.Factory +
                                                                                                                                                          +
                                                                                                                                                          ValidateableDataBuilder(java.lang.Class) - Constructor in ValidateableDataBuilder +
                                                                                                                                                          +
                                                                                                                                                          ValidatorConstraintHandler - Class in grails.buildtestdata.handler +
                                                                                                                                                          +
                                                                                                                                                          ValidatorConstraintHandler() - Constructor in ValidatorConstraintHandler +
                                                                                                                                                          +
                                                                                                                                                          value() - Method in Build +
                                                                                                                                                          +
                                                                                                                                                          + + + +

                                                                                                                                                          W

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          + + + +

                                                                                                                                                          X

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          + + + +

                                                                                                                                                          Y

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          + + + +

                                                                                                                                                          Z

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          + + + +

                                                                                                                                                          _

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          + + +
                                                                                                                                                          + + +A + +B + +C + +D + +E + +F + +G + +H + +I + +J + +K + +L + +M + +N + +O + +P + +Q + +R + +S + +T + +U + +V + +W + +X + +Y + +Z + +_ + + + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + + + diff --git a/6.0.x/gapi/index.html b/6.0.x/gapi/index.html new file mode 100644 index 0000000..5fdec3a --- /dev/null +++ b/6.0.x/gapi/index.html @@ -0,0 +1,90 @@ + + + + +Index (Groovy Documentation) + + + + + + + + + + + + + + <noscript> + <div>JavaScript is disabled on your browser.</div> + </noscript> + <h2>Frame Alert</h2> + <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + diff --git a/6.0.x/gapi/inherit.gif b/6.0.x/gapi/inherit.gif new file mode 100644 index 0000000000000000000000000000000000000000..c814867a13deb0ca7ea2156c6ca1d5a03372af7e GIT binary patch literal 57 zcmZ?wbhEHbIIT!9-C*e{wE9>Kx3D)-;0v)C; KYxQGgum%9JOA&7X literal 0 HcmV?d00001 diff --git a/6.0.x/gapi/overview-frame.html b/6.0.x/gapi/overview-frame.html new file mode 100644 index 0000000..45dcf46 --- /dev/null +++ b/6.0.x/gapi/overview-frame.html @@ -0,0 +1,63 @@ + + + + +Overview (Groovy Documentation) + + + + + + + + + + + + + diff --git a/6.0.x/gapi/overview-summary.html b/6.0.x/gapi/overview-summary.html new file mode 100644 index 0000000..7189b13 --- /dev/null +++ b/6.0.x/gapi/overview-summary.html @@ -0,0 +1,166 @@ + + + + + +Overview (Groovy Documentation) + + + + + + + + + + + +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +
                                                                                                                                                          +

                                                                                                                                                          Groovy Documentation

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          +
                                                                                                                                                          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                          Packages 
                                                                                                                                                          PackageDescription
                                                                                                                                                          grails.buildtestdata 
                                                                                                                                                          grails.buildtestdata.builders 
                                                                                                                                                          grails.buildtestdata.handler 
                                                                                                                                                          grails.buildtestdata.mixin 
                                                                                                                                                          grails.buildtestdata.propsresolver 
                                                                                                                                                          grails.buildtestdata.testing 
                                                                                                                                                          grails.buildtestdata.utils 
                                                                                                                                                          +
                                                                                                                                                          + + + + diff --git a/6.0.x/gapi/package-list b/6.0.x/gapi/package-list new file mode 100644 index 0000000..b149bc8 --- /dev/null +++ b/6.0.x/gapi/package-list @@ -0,0 +1,7 @@ +grails.buildtestdata +grails.buildtestdata.builders +grails.buildtestdata.handler +grails.buildtestdata.mixin +grails.buildtestdata.propsresolver +grails.buildtestdata.testing +grails.buildtestdata.utils diff --git a/6.0.x/gapi/stylesheet.css b/6.0.x/gapi/stylesheet.css new file mode 100644 index 0000000..06eb31a --- /dev/null +++ b/6.0.x/gapi/stylesheet.css @@ -0,0 +1,2306 @@ +@charset "UTF-8"; + +/*! normalize.css v2.1.0 | MIT License | git.io/normalize */ +article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { + display: block +} + +audio, canvas, video { + display: inline-block +} + +audio:not([controls]) { + display: none; + height: 0 +} + +[hidden] { + display: none +} + +html { + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100% +} + +body { + margin: 0 +} + +a:focus { + outline: thin dotted +} + +a:active, a:hover { + outline: 0 +} + +h1 { + font-size: 2em; + margin: .67em 0 +} + +abbr[title] { + border-bottom: 1px dotted +} + +b, strong { + font-weight: bold +} + +dfn { + font-style: italic +} + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0 +} + +mark { + background: #ff0; + color: #000 +} + +code, kbd, pre, samp { + font-family: monospace, serif; + font-size: 1em +} + +pre { + white-space: pre-wrap +} + +q { + quotes: "C" "D" "8" "9" +} + +small { + font-size: 80% +} + +sub, sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline +} + +sup { + top: -0.5em +} + +sub { + bottom: -0.25em +} + +img { + border: 0 +} + +svg:not(:root) { + overflow: hidden +} + +figure { + margin: 0 +} + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: .35em .625em .75em +} + +legend { + border: 0; + padding: 0 +} + +button, input, select, textarea { + font-family: inherit; + font-size: 100%; + margin: 0 +} + +button, input { + line-height: normal +} + +button, select { + text-transform: none +} + +button, html input[type="button"], input[type="reset"], input[type="submit"] { + -webkit-appearance: button; + cursor: pointer +} + +button[disabled], html input[disabled] { + cursor: default +} + +input[type="checkbox"], input[type="radio"] { + box-sizing: border-box; + padding: 0 +} + +input[type="search"] { + -webkit-appearance: textfield; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box +} + +input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none +} + +button::-moz-focus-inner, input::-moz-focus-inner { + border: 0; + padding: 0 +} + +textarea { + overflow: auto; + vertical-align: top +} + +table { + border-collapse: collapse; + border-spacing: 0 +} + +@-ms-viewport { + width: device-width +} + +@media screen and (max-width: 400px) { + @-ms-viewport { + width: 320px + } +} + +.hidden { + display: none !important; + visibility: hidden !important +} + +.visible-xs { + display: none !important +} + +tr.visible-xs { + display: none !important +} + +th.visible-xs, td.visible-xs { + display: none !important +} + +@media (max-width: 767px) { + .visible-xs { + display: block !important + } + + tr.visible-xs { + display: table-row !important + } + + th.visible-xs, td.visible-xs { + display: table-cell !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-xs.visible-sm { + display: block !important + } + + tr.visible-xs.visible-sm { + display: table-row !important + } + + th.visible-xs.visible-sm, td.visible-xs.visible-sm { + display: table-cell !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .visible-xs.visible-md { + display: block !important + } + + tr.visible-xs.visible-md { + display: table-row !important + } + + th.visible-xs.visible-md, td.visible-xs.visible-md { + display: table-cell !important + } +} + +@media (min-width: 1200px) { + .visible-xs.visible-lg { + display: block !important + } + + tr.visible-xs.visible-lg { + display: table-row !important + } + + th.visible-xs.visible-lg, td.visible-xs.visible-lg { + display: table-cell !important + } +} + +.visible-sm { + display: none !important +} + +tr.visible-sm { + display: none !important +} + +th.visible-sm, td.visible-sm { + display: none !important +} + +@media (max-width: 767px) { + .visible-sm.visible-xs { + display: block !important + } + + tr.visible-sm.visible-xs { + display: table-row !important + } + + th.visible-sm.visible-xs, td.visible-sm.visible-xs { + display: table-cell !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-sm { + display: block !important + } + + tr.visible-sm { + display: table-row !important + } + + th.visible-sm, td.visible-sm { + display: table-cell !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .visible-sm.visible-md { + display: block !important + } + + tr.visible-sm.visible-md { + display: table-row !important + } + + th.visible-sm.visible-md, td.visible-sm.visible-md { + display: table-cell !important + } +} + +@media (min-width: 1200px) { + .visible-sm.visible-lg { + display: block !important + } + + tr.visible-sm.visible-lg { + display: table-row !important + } + + th.visible-sm.visible-lg, td.visible-sm.visible-lg { + display: table-cell !important + } +} + +.visible-md { + display: none !important +} + +tr.visible-md { + display: none !important +} + +th.visible-md, td.visible-md { + display: none !important +} + +@media (max-width: 767px) { + .visible-md.visible-xs { + display: block !important + } + + tr.visible-md.visible-xs { + display: table-row !important + } + + th.visible-md.visible-xs, td.visible-md.visible-xs { + display: table-cell !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-md.visible-sm { + display: block !important + } + + tr.visible-md.visible-sm { + display: table-row !important + } + + th.visible-md.visible-sm, td.visible-md.visible-sm { + display: table-cell !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .visible-md { + display: block !important + } + + tr.visible-md { + display: table-row !important + } + + th.visible-md, td.visible-md { + display: table-cell !important + } +} + +@media (min-width: 1200px) { + .visible-md.visible-lg { + display: block !important + } + + tr.visible-md.visible-lg { + display: table-row !important + } + + th.visible-md.visible-lg, td.visible-md.visible-lg { + display: table-cell !important + } +} + +.visible-lg { + display: none !important +} + +tr.visible-lg { + display: none !important +} + +th.visible-lg, td.visible-lg { + display: none !important +} + +@media (max-width: 767px) { + .visible-lg.visible-xs { + display: block !important + } + + tr.visible-lg.visible-xs { + display: table-row !important + } + + th.visible-lg.visible-xs, td.visible-lg.visible-xs { + display: table-cell !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .visible-lg.visible-sm { + display: block !important + } + + tr.visible-lg.visible-sm { + display: table-row !important + } + + th.visible-lg.visible-sm, td.visible-lg.visible-sm { + display: table-cell !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .visible-lg.visible-md { + display: block !important + } + + tr.visible-lg.visible-md { + display: table-row !important + } + + th.visible-lg.visible-md, td.visible-lg.visible-md { + display: table-cell !important + } +} + +@media (min-width: 1200px) { + .visible-lg { + display: block !important + } + + tr.visible-lg { + display: table-row !important + } + + th.visible-lg, td.visible-lg { + display: table-cell !important + } +} + +.hidden-xs { + display: block !important +} + +tr.hidden-xs { + display: table-row !important +} + +th.hidden-xs, td.hidden-xs { + display: table-cell !important +} + +@media (max-width: 767px) { + .hidden-xs { + display: none !important + } + + tr.hidden-xs { + display: none !important + } + + th.hidden-xs, td.hidden-xs { + display: none !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .hidden-xs.hidden-sm { + display: none !important + } + + tr.hidden-xs.hidden-sm { + display: none !important + } + + th.hidden-xs.hidden-sm, td.hidden-xs.hidden-sm { + display: none !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-xs.hidden-md { + display: none !important + } + + tr.hidden-xs.hidden-md { + display: none !important + } + + th.hidden-xs.hidden-md, td.hidden-xs.hidden-md { + display: none !important + } +} + +@media (min-width: 1200px) { + .hidden-xs.hidden-lg { + display: none !important + } + + tr.hidden-xs.hidden-lg { + display: none !important + } + + th.hidden-xs.hidden-lg, td.hidden-xs.hidden-lg { + display: none !important + } +} + +.hidden-sm { + display: block !important +} + +tr.hidden-sm { + display: table-row !important +} + +th.hidden-sm, td.hidden-sm { + display: table-cell !important +} + +@media (max-width: 767px) { + .hidden-sm.hidden-xs { + display: none !important + } + + tr.hidden-sm.hidden-xs { + display: none !important + } + + th.hidden-sm.hidden-xs, td.hidden-sm.hidden-xs { + display: none !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .hidden-sm { + display: none !important + } + + tr.hidden-sm { + display: none !important + } + + th.hidden-sm, td.hidden-sm { + display: none !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-sm.hidden-md { + display: none !important + } + + tr.hidden-sm.hidden-md { + display: none !important + } + + th.hidden-sm.hidden-md, td.hidden-sm.hidden-md { + display: none !important + } +} + +@media (min-width: 1200px) { + .hidden-sm.hidden-lg { + display: none !important + } + + tr.hidden-sm.hidden-lg { + display: none !important + } + + th.hidden-sm.hidden-lg, td.hidden-sm.hidden-lg { + display: none !important + } +} + +.hidden-md { + display: block !important +} + +tr.hidden-md { + display: table-row !important +} + +th.hidden-md, td.hidden-md { + display: table-cell !important +} + +@media (max-width: 767px) { + .hidden-md.hidden-xs { + display: none !important + } + + tr.hidden-md.hidden-xs { + display: none !important + } + + th.hidden-md.hidden-xs, td.hidden-md.hidden-xs { + display: none !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .hidden-md.hidden-sm { + display: none !important + } + + tr.hidden-md.hidden-sm { + display: none !important + } + + th.hidden-md.hidden-sm, td.hidden-md.hidden-sm { + display: none !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-md { + display: none !important + } + + tr.hidden-md { + display: none !important + } + + th.hidden-md, td.hidden-md { + display: none !important + } +} + +@media (min-width: 1200px) { + .hidden-md.hidden-lg { + display: none !important + } + + tr.hidden-md.hidden-lg { + display: none !important + } + + th.hidden-md.hidden-lg, td.hidden-md.hidden-lg { + display: none !important + } +} + +.hidden-lg { + display: block !important +} + +tr.hidden-lg { + display: table-row !important +} + +th.hidden-lg, td.hidden-lg { + display: table-cell !important +} + +@media (max-width: 767px) { + .hidden-lg.hidden-xs { + display: none !important + } + + tr.hidden-lg.hidden-xs { + display: none !important + } + + th.hidden-lg.hidden-xs, td.hidden-lg.hidden-xs { + display: none !important + } +} + +@media (min-width: 768px) and (max-width: 991px) { + .hidden-lg.hidden-sm { + display: none !important + } + + tr.hidden-lg.hidden-sm { + display: none !important + } + + th.hidden-lg.hidden-sm, td.hidden-lg.hidden-sm { + display: none !important + } +} + +@media (min-width: 992px) and (max-width: 1199px) { + .hidden-lg.hidden-md { + display: none !important + } + + tr.hidden-lg.hidden-md { + display: none !important + } + + th.hidden-lg.hidden-md, td.hidden-lg.hidden-md { + display: none !important + } +} + +@media (min-width: 1200px) { + .hidden-lg { + display: none !important + } + + tr.hidden-lg { + display: none !important + } + + th.hidden-lg, td.hidden-lg { + display: none !important + } +} + +.visible-print { + display: none !important +} + +tr.visible-print { + display: none !important +} + +th.visible-print, td.visible-print { + display: none !important +} + +@media print { + .visible-print { + display: block !important + } + + tr.visible-print { + display: table-row !important + } + + th.visible-print, td.visible-print { + display: table-cell !important + } + + .hidden-print { + display: none !important + } + + tr.hidden-print { + display: none !important + } + + th.hidden-print, td.hidden-print { + display: none !important + } +} + +.container { + margin-right: auto; + margin-left: auto; + padding-left: 15px; + padding-right: 15px +} + +.container:before, .container:after { + content: " "; + display: table +} + +.container:after { + clear: both +} + +.row-fluid { + margin-left: -15px; + margin-right: -15px +} + +.row-fluid:before, .row-fluid:after { + content: " "; + display: table +} + +.row-fluid:after { + clear: both +} + +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { + position: relative; + min-height: 1px; + padding-left: 15px; + padding-right: 15px +} + +.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11 { + float: left +} + +.col-xs-1 { + width: 8.333333333333332% +} + +.col-xs-2 { + width: 16.666666666666664% +} + +.col-xs-3 { + width: 25% +} + +.col-xs-4 { + width: 33.33333333333333% +} + +.col-xs-5 { + width: 41.66666666666667% +} + +.col-xs-6 { + width: 50% +} + +.col-xs-7 { + width: 58.333333333333336% +} + +.col-xs-8 { + width: 66.66666666666666% +} + +.col-xs-9 { + width: 75% +} + +.col-xs-10 { + width: 83.33333333333334% +} + +.col-xs-11 { + width: 91.66666666666666% +} + +.col-xs-12 { + width: 100% +} + +@media (min-width: 768px) { + .container { + max-width: 750px + } + + .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11 { + float: left + } + + .col-sm-1 { + width: 8.333333333333332% + } + + .col-sm-2 { + width: 16.666666666666664% + } + + .col-sm-3 { + width: 25% + } + + .col-sm-4 { + width: 33.33333333333333% + } + + .col-sm-5 { + width: 41.66666666666667% + } + + .col-sm-6 { + width: 50% + } + + .col-sm-7 { + width: 58.333333333333336% + } + + .col-sm-8 { + width: 66.66666666666666% + } + + .col-sm-9 { + width: 75% + } + + .col-sm-10 { + width: 83.33333333333334% + } + + .col-sm-11 { + width: 91.66666666666666% + } + + .col-sm-12 { + width: 100% + } + + .col-sm-push-1 { + left: 8.333333333333332% + } + + .col-sm-push-2 { + left: 16.666666666666664% + } + + .col-sm-push-3 { + left: 25% + } + + .col-sm-push-4 { + left: 33.33333333333333% + } + + .col-sm-push-5 { + left: 41.66666666666667% + } + + .col-sm-push-6 { + left: 50% + } + + .col-sm-push-7 { + left: 58.333333333333336% + } + + .col-sm-push-8 { + left: 66.66666666666666% + } + + .col-sm-push-9 { + left: 75% + } + + .col-sm-push-10 { + left: 83.33333333333334% + } + + .col-sm-push-11 { + left: 91.66666666666666% + } + + .col-sm-pull-1 { + right: 8.333333333333332% + } + + .col-sm-pull-2 { + right: 16.666666666666664% + } + + .col-sm-pull-3 { + right: 25% + } + + .col-sm-pull-4 { + right: 33.33333333333333% + } + + .col-sm-pull-5 { + right: 41.66666666666667% + } + + .col-sm-pull-6 { + right: 50% + } + + .col-sm-pull-7 { + right: 58.333333333333336% + } + + .col-sm-pull-8 { + right: 66.66666666666666% + } + + .col-sm-pull-9 { + right: 75% + } + + .col-sm-pull-10 { + right: 83.33333333333334% + } + + .col-sm-pull-11 { + right: 91.66666666666666% + } + + .col-sm-offset-1 { + margin-left: 8.333333333333332% + } + + .col-sm-offset-2 { + margin-left: 16.666666666666664% + } + + .col-sm-offset-3 { + margin-left: 25% + } + + .col-sm-offset-4 { + margin-left: 33.33333333333333% + } + + .col-sm-offset-5 { + margin-left: 41.66666666666667% + } + + .col-sm-offset-6 { + margin-left: 50% + } + + .col-sm-offset-7 { + margin-left: 58.333333333333336% + } + + .col-sm-offset-8 { + margin-left: 66.66666666666666% + } + + .col-sm-offset-9 { + margin-left: 75% + } + + .col-sm-offset-10 { + margin-left: 83.33333333333334% + } + + .col-sm-offset-11 { + margin-left: 91.66666666666666% + } +} + +@media (min-width: 992px) { + .container { + max-width: 970px + } + + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 { + float: left + } + + .col-md-1 { + width: 8.333333333333332% + } + + .col-md-2 { + width: 16.666666666666664% + } + + .col-md-3 { + width: 25% + } + + .col-md-4 { + width: 33.33333333333333% + } + + .col-md-5 { + width: 41.66666666666667% + } + + .col-md-6 { + width: 50% + } + + .col-md-7 { + width: 58.333333333333336% + } + + .col-md-8 { + width: 66.66666666666666% + } + + .col-md-9 { + width: 75% + } + + .col-md-10 { + width: 83.33333333333334% + } + + .col-md-11 { + width: 91.66666666666666% + } + + .col-md-12 { + width: 100% + } + + .col-md-push-0 { + left: auto + } + + .col-md-push-1 { + left: 8.333333333333332% + } + + .col-md-push-2 { + left: 16.666666666666664% + } + + .col-md-push-3 { + left: 25% + } + + .col-md-push-4 { + left: 33.33333333333333% + } + + .col-md-push-5 { + left: 41.66666666666667% + } + + .col-md-push-6 { + left: 50% + } + + .col-md-push-7 { + left: 58.333333333333336% + } + + .col-md-push-8 { + left: 66.66666666666666% + } + + .col-md-push-9 { + left: 75% + } + + .col-md-push-10 { + left: 83.33333333333334% + } + + .col-md-push-11 { + left: 91.66666666666666% + } + + .col-md-pull-0 { + right: auto + } + + .col-md-pull-1 { + right: 8.333333333333332% + } + + .col-md-pull-2 { + right: 16.666666666666664% + } + + .col-md-pull-3 { + right: 25% + } + + .col-md-pull-4 { + right: 33.33333333333333% + } + + .col-md-pull-5 { + right: 41.66666666666667% + } + + .col-md-pull-6 { + right: 50% + } + + .col-md-pull-7 { + right: 58.333333333333336% + } + + .col-md-pull-8 { + right: 66.66666666666666% + } + + .col-md-pull-9 { + right: 75% + } + + .col-md-pull-10 { + right: 83.33333333333334% + } + + .col-md-pull-11 { + right: 91.66666666666666% + } + + .col-md-offset-0 { + margin-left: 0 + } + + .col-md-offset-1 { + margin-left: 8.333333333333332% + } + + .col-md-offset-2 { + margin-left: 16.666666666666664% + } + + .col-md-offset-3 { + margin-left: 25% + } + + .col-md-offset-4 { + margin-left: 33.33333333333333% + } + + .col-md-offset-5 { + margin-left: 41.66666666666667% + } + + .col-md-offset-6 { + margin-left: 50% + } + + .col-md-offset-7 { + margin-left: 58.333333333333336% + } + + .col-md-offset-8 { + margin-left: 66.66666666666666% + } + + .col-md-offset-9 { + margin-left: 75% + } + + .col-md-offset-10 { + margin-left: 83.33333333333334% + } + + .col-md-offset-11 { + margin-left: 91.66666666666666% + } +} + +@media (min-width: 1200px) { + .container { + max-width: 1170px + } + + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 { + float: left + } + + .col-lg-1 { + width: 8.333333333333332% + } + + .col-lg-2 { + width: 16.666666666666664% + } + + .col-lg-3 { + width: 25% + } + + .col-lg-4 { + width: 33.33333333333333% + } + + .col-lg-5 { + width: 41.66666666666667% + } + + .col-lg-6 { + width: 50% + } + + .col-lg-7 { + width: 58.333333333333336% + } + + .col-lg-8 { + width: 66.66666666666666% + } + + .col-lg-9 { + width: 75% + } + + .col-lg-10 { + width: 83.33333333333334% + } + + .col-lg-11 { + width: 91.66666666666666% + } + + .col-lg-12 { + width: 100% + } + + .col-lg-push-0 { + left: auto + } + + .col-lg-push-1 { + left: 8.333333333333332% + } + + .col-lg-push-2 { + left: 16.666666666666664% + } + + .col-lg-push-3 { + left: 25% + } + + .col-lg-push-4 { + left: 33.33333333333333% + } + + .col-lg-push-5 { + left: 41.66666666666667% + } + + .col-lg-push-6 { + left: 50% + } + + .col-lg-push-7 { + left: 58.333333333333336% + } + + .col-lg-push-8 { + left: 66.66666666666666% + } + + .col-lg-push-9 { + left: 75% + } + + .col-lg-push-10 { + left: 83.33333333333334% + } + + .col-lg-push-11 { + left: 91.66666666666666% + } + + .col-lg-pull-0 { + right: auto + } + + .col-lg-pull-1 { + right: 8.333333333333332% + } + + .col-lg-pull-2 { + right: 16.666666666666664% + } + + .col-lg-pull-3 { + right: 25% + } + + .col-lg-pull-4 { + right: 33.33333333333333% + } + + .col-lg-pull-5 { + right: 41.66666666666667% + } + + .col-lg-pull-6 { + right: 50% + } + + .col-lg-pull-7 { + right: 58.333333333333336% + } + + .col-lg-pull-8 { + right: 66.66666666666666% + } + + .col-lg-pull-9 { + right: 75% + } + + .col-lg-pull-10 { + right: 83.33333333333334% + } + + .col-lg-pull-11 { + right: 91.66666666666666% + } + + .col-lg-offset-0 { + margin-left: 0 + } + + .col-lg-offset-1 { + margin-left: 8.333333333333332% + } + + .col-lg-offset-2 { + margin-left: 16.666666666666664% + } + + .col-lg-offset-3 { + margin-left: 25% + } + + .col-lg-offset-4 { + margin-left: 33.33333333333333% + } + + .col-lg-offset-5 { + margin-left: 41.66666666666667% + } + + .col-lg-offset-6 { + margin-left: 50% + } + + .col-lg-offset-7 { + margin-left: 58.333333333333336% + } + + .col-lg-offset-8 { + margin-left: 66.66666666666666% + } + + .col-lg-offset-9 { + margin-left: 75% + } + + .col-lg-offset-10 { + margin-left: 83.33333333333334% + } + + .col-lg-offset-11 { + margin-left: 91.66666666666666% + } +} + +.btn { + display: inline-block; + padding: 6px 12px; + margin-bottom: 0; + font-size: 14px; + font-weight: normal; + line-height: 1.428571429; + text-align: center; + vertical-align: middle; + cursor: pointer; + border: 1px solid transparent; + border-radius: 0; + white-space: nowrap; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none +} + +.btn:focus { + outline: thin dotted #333; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} + +.btn:hover, .btn:focus { + color: #333; + text-decoration: none +} + +.btn:active, .btn.active { + outline: 0; + background-image: none +} + +.btn.disabled, .btn[disabled], fieldset[disabled] .btn { + cursor: not-allowed; + pointer-events: none; + opacity: .65; + filter: alpha(opacity=65); + -webkit-box-shadow: none; + box-shadow: none +} + +.btn-default { + color: #333; + background-color: #fff; + border-color: #ccc +} + +.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { + color: #333; + background-color: #ebebeb; + border-color: #adadad +} + +.btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { + background-image: none +} + +.btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { + background-color: #fff; + border-color: #ccc +} + +.btn-primary { + color: #fff; + background-color: #428bca; + border-color: #357ebd +} + +.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { + color: #fff; + background-color: #3276b1; + border-color: #285e8e +} + +.btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { + background-image: none +} + +.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { + background-color: #428bca; + border-color: #357ebd +} + +.btn-warning { + color: #fff; + background-color: #f0ad4e; + border-color: #eea236 +} + +.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { + color: #fff; + background-color: #ed9c28; + border-color: #d58512 +} + +.btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { + background-image: none +} + +.btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { + background-color: #f0ad4e; + border-color: #eea236 +} + +.btn-danger { + color: #fff; + background-color: #d9534f; + border-color: #d43f3a +} + +.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { + color: #fff; + background-color: #d2322d; + border-color: #ac2925 +} + +.btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { + background-image: none +} + +.btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { + background-color: #d9534f; + border-color: #d43f3a +} + +.btn-success { + color: #fff; + background-color: #5cb85c; + border-color: #4cae4c +} + +.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { + color: #fff; + background-color: #47a447; + border-color: #398439 +} + +.btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { + background-image: none +} + +.btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { + background-color: #5cb85c; + border-color: #4cae4c +} + +.btn-info { + color: #fff; + background-color: #5bc0de; + border-color: #46b8da +} + +.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { + color: #fff; + background-color: #39b3d7; + border-color: #269abc +} + +.btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { + background-image: none +} + +.btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { + background-color: #5bc0de; + border-color: #46b8da +} + +.btn-link { + color: #428bca; + font-weight: normal; + cursor: pointer; + border-radius: 0 +} + +.btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { + background-color: transparent; + -webkit-box-shadow: none; + box-shadow: none +} + +.btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { + border-color: transparent +} + +.btn-link:hover, .btn-link:focus { + color: #2a6496; + text-decoration: underline; + background-color: transparent +} + +.btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { + color: #999; + text-decoration: none +} + +.btn-lg { + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px +} + +.btn-sm, .btn-xs { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px +} + +.btn-xs { + padding: 1px 5px +} + +.btn-block { + display: block; + width: 100%; + padding-left: 0; + padding-right: 0 +} + +.btn-block + .btn-block { + margin-top: 5px +} + +input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { + width: 100% +} + +.btn-default .caret { + border-top-color: #333 +} + +.btn-primary .caret, .btn-success .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret { + border-top-color: #fff +} + +.dropup .btn-default .caret { + border-bottom-color: #333 +} + +.dropup .btn-primary .caret, .dropup .btn-success .caret, .dropup .btn-warning .caret, .dropup .btn-danger .caret, .dropup .btn-info .caret { + border-bottom-color: #fff +} + +.btn-group, .btn-group-vertical { + position: relative; + display: inline-block; + vertical-align: middle +} + +.btn-group > .btn, .btn-group-vertical > .btn { + position: relative; + float: left +} + +.btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { + z-index: 2 +} + +.btn-group > .btn:focus, .btn-group-vertical > .btn:focus { + outline: 0 +} + +.btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { + margin-left: -1px +} + +.btn-toolbar:before, .btn-toolbar:after { + content: " "; + display: table +} + +.btn-toolbar:after { + clear: both +} + +.btn-toolbar .btn-group { + float: left +} + +.btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group, .btn-toolbar > .btn-group + .btn-group { + margin-left: 5px +} + +.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { + border-radius: 0 +} + +.btn-group > .btn:first-child { + margin-left: 0 +} + +.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { + border-bottom-right-radius: 0; + border-top-right-radius: 0 +} + +.btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0 +} + +.btn-group > .btn-group { + float: left +} + +.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0 +} + +.btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { + border-bottom-right-radius: 0; + border-top-right-radius: 0 +} + +.btn-group > .btn-group:last-child > .btn:first-child { + border-bottom-left-radius: 0; + border-top-left-radius: 0 +} + +.btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { + outline: 0 +} + +.btn-group-xs > .btn { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; + padding: 1px 5px +} + +.btn-group-sm > .btn { + padding: 5px 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px +} + +.btn-group-lg > .btn { + padding: 10px 16px; + font-size: 18px; + line-height: 1.33; + border-radius: 6px +} + +.btn-group > .btn + .dropdown-toggle { + padding-left: 8px; + padding-right: 8px +} + +.btn-group > .btn-lg + .dropdown-toggle { + padding-left: 12px; + padding-right: 12px +} + +.btn-group.open .dropdown-toggle { + background: #f2f2f2 +} + +.btn .caret { + margin-left: 0 +} + +.btn-lg .caret { + border-width: 5px 5px 0; + border-bottom-width: 0 +} + +.dropup .btn-lg .caret { + border-width: 0 5px 5px +} + +.btn-group-vertical > .btn, .btn-group-vertical > .btn-group { + display: block; + float: none; + width: 100%; + max-width: 100% +} + +.btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { + content: " "; + display: table +} + +.btn-group-vertical > .btn-group:after { + clear: both +} + +.btn-group-vertical > .btn-group > .btn { + float: none +} + +.btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { + margin-top: -1px; + margin-left: 0 +} + +.btn-group-vertical > .btn:not(:first-child):not(:last-child) { + border-radius: 0 +} + +.btn-group-vertical > .btn:first-child:not(:last-child) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} + +.btn-group-vertical > .btn:last-child:not(:first-child) { + border-bottom-left-radius: 0; + border-top-right-radius: 0; + border-top-left-radius: 0 +} + +.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { + border-radius: 0 +} + +.btn-group-vertical > .btn-group:first-child > .btn:last-child, .btn-group-vertical > .btn-group:first-child > .dropdown-toggle { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0 +} + +.btn-group-vertical > .btn-group:last-child > .btn:first-child { + border-top-right-radius: 0; + border-top-left-radius: 0 +} + +.btn-group-justified { + display: table; + width: 100%; + table-layout: fixed; + border-collapse: separate +} + +.btn-group-justified .btn { + float: none; + display: table-cell; + width: 1% +} + +[data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { + display: none +} + +.caret { + display: inline-block; + width: 0; + height: 0; + margin-left: 2px; + vertical-align: middle; + border-top: 4px solid #000; + border-right: 4px solid transparent; + border-left: 4px solid transparent; + border-bottom: 0 dotted; + content: "" +} + +.dropdown { + position: relative +} + +.dropdown-toggle:focus { + outline: 0 +} + +.dropdown-menu { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 160px; + padding: 5px 0; + margin: 2px 0 0; + list-style: none; + font-size: 14px; + background-color: #fff; + border: 1px solid #ccc; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 0; + background-clip: padding-box +} + +.dropdown-menu.pull-right { + right: 0; + left: auto +} + +.dropdown-menu .divider { + height: 1px; + margin: 9px 0; + overflow: hidden; + background-color: #e5e5e5 +} + +.dropdown-menu > li > a { + font-size: 14px; + text-decoration: none; + display: block; + padding: 5px 20px; + clear: both; + font-weight: normal; + line-height: 1.428571429; + color: #333; + white-space: nowrap +} + +.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { + text-decoration: none; + color: #fff; + background-color: #428bca +} + +.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { + color: #fff; + text-decoration: none; + outline: 0; + background-color: #428bca +} + +.dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { + color: #999 +} + +.dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { + text-decoration: none; + background-color: transparent; + background-image: none; + filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); + cursor: not-allowed +} + +.open > .dropdown-menu { + display: block +} + +.open > a { + outline: 0 +} + +.dropdown-header { + display: block; + padding: 3px 20px; + font-size: 12px; + line-height: 1.428571429; + color: #999 +} + +.dropdown-backdrop { + position: fixed; + left: 0; + right: 0; + bottom: 0; + top: 0; + z-index: 990 +} + +.pull-right > .dropdown-menu { + right: 0; + left: auto +} + +.dropup .caret, .navbar-fixed-bottom .dropdown .caret { + border-top: 0 dotted; + border-bottom: 4px solid #000; + content: "" +} + +.dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { + top: auto; + bottom: 100%; + margin-bottom: 1px +} + +@media (min-width: 768px) { + .navbar-right .dropdown-menu { + right: 0; + left: auto + } +} + +body, html { + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + margin: 0; + background: #ededed; + color: #343437; + line-height: 2em; + font-weight: 300; + font-size: .95em +} + +h1 { + font-size: 2.5em; + margin: .8em 0 +} + +body.center { + padding: 0 30px; + background: #FFF; + font-size: 1em +} + +ul li { + list-style-type: disc +} + +a { + color: #4290ad; + text-decoration: none; + font-weight: normal +} + +a:hover { + text-decoration: underline +} + +h1, h2, h3 { + font-weight: 300; + line-height: 1.2em +} + +.topNav, .bottomNav { + background: #f2f2f2; + margin: 0 -30px; + margin-bottom: 20px +} + +.topNav:before, .bottomNav:before, .topNav:after, .bottomNav:after { + content: " "; + display: table +} + +.topNav:after, .bottomNav:after { + clear: both +} + +.topNav ul.navList, .bottomNav ul.navList { + padding: 10px 20px; + margin: 0; + list-style-type: none +} + +.topNav ul.navList li, .bottomNav ul.navList li { + display: inline; + padding: 0 10px +} + +.topNav ul.navList li.navBarCell1Rev, .bottomNav ul.navList li.navBarCell1Rev { + font-weight: bold +} + +.bottomNav { + margin-top: 30px; + margin-bottom: 0 +} + +.aboutLanguage { + color: #BBB; + background: white; + text-align: center; + padding: 20px 0 +} + +.subNav { + padding-bottom: 10px; + margin-bottom: 10px; + border-bottom: 1px solid #EEE +} + +.subNav:before, .subNav:after { + content: " "; + display: table +} + +.subNav:after { + clear: both +} + +.subNav div:before, .subNav div:after { + content: " "; + display: table +} + +.subNav div:after { + clear: both +} + +.subNav ul.navList, .subNav ul { + font-size: .9em; + margin: 0; + padding: 00; + float: left; + list-style-type: none +} + +.subNav ul.navList li, .subNav ul li { + padding: 0 5px; + display: inline +} + +table.overviewSummary, .contentContainer ul li table { + width: 100%; + margin: 20px 0 +} + +table.overviewSummary caption, .contentContainer ul li table caption { + text-align: left; + font-weight: 100; + font-size: 1em; + float: left; + padding: 0 10px; + margin-top: 10px; + background: #db4800; + color: white +} + +table.overviewSummary tr th, .contentContainer ul li table tr th { + padding: 10px; + font-weight: bold; + font-size: 1em; + text-align: left +} + +table.overviewSummary tr td, .contentContainer ul li table tr td { + vertical-align: top; + font-size: .9em; + padding: 5px 10px; + border-top: 1px solid #EEE +} + +table.overviewSummary tbody > tr:nth-child(odd) > td, .contentContainer ul li table tbody > tr:nth-child(odd) > td { + background-color: #f9f9f9 +} + +body.left { + padding-top: 10px +} + +body.left h1, body.left h2 { + display: inline; + text-align: left; + font-weight: 100; + font-size: 1em; + margin: 0 10px; + padding: 3px 10px; + margin-top: 10px; + background: #db4800; + color: white; + line-height: 40px +} + +body.left .indexHeader { + margin: 0; + padding: 0 15px; + font-size: .9em +} + +body.left ul { + list-style-type: none; + margin: 0; + padding: 0 +} + +body.left ul li { + margin: 0; + padding: 0 +} + +body.left ul li a { + display: block; + padding: 0 15px; + text-decoration: none +} + +body.left ul li a:hover { + text-decoration: underline +} + +.contentContainer .header ul, .contentContainer ul.blockList { + padding: 0 +} + +.contentContainer .header ul > li, .contentContainer ul.blockList > li { + list-style-type: none +} + +.contentContainer ul.inheritance { + margin-left: 0; + padding-left: 0 +} + +.contentContainer ul.inheritance li { + list-style-type: none +} + +.contentContainer ul.inheritance ul.inheritance { + padding-left: 20px +} + +.contentContainer hr { + border: 0 none; + border-top: 1px solid #EEE; + margin-top: 30px; + margin-botom: 0 +} + +ul.blockList ul.blockList, ul.blockList ul.blockListLast { + border: 1px solid #EEE; + margin: 20px 0; + padding: 0 20px +} + +ul.blockList ul.blockList h4, ul.blockList ul.blockListLast h4, ul.blockList ul.blockList h3, ul.blockList ul.blockListLast h3 { + font-size: 1em; + font-weight: bold; + line-height: 2em; + text-indent: 10px; + border-bottom: 1px solid #EEE; + margin: 0 -20px; + padding: 5px 0; + background: #f2f2f2 +} + +ul.blockList ul.blockList li, ul.blockList ul.blockListLast li { + list-style-type: none +} + +ul.horizontal { + list-style-type: none; + padding: 0; + margin: 0; + font-size: .9em +} + +ul.horizontal li { + display: inline +} + +span.strong { + font-weight: bold +} + +a span.strong { + font-weight: normal +} \ No newline at end of file diff --git a/6.0.x/ghpages.html b/6.0.x/ghpages.html new file mode 100644 index 0000000..4e7bec5 --- /dev/null +++ b/6.0.x/ghpages.html @@ -0,0 +1,89 @@ + + + + + + +Build Test Data - Grails Plugin + + + + + + + + Fork me on GitHub + + +
                                                                                                                                                          +

                                                                                                                                                          Build Test Data - Grails Plugin

                                                                                                                                                          + +
                                                                                                                                                          + +

                                                                                                                                                          Build Test Data - SNAPSHOT

                                                                                                                                                          + + +

                                                                                                                                                          Build Test Data - 6.0.0-M1 (Grails 7+)

                                                                                                                                                          + + +

                                                                                                                                                          Build Test Data - 5.0.0 (Grails 5 & 6)

                                                                                                                                                          + +
                                                                                                                                                          + + + diff --git a/6.0.x/index.html b/6.0.x/index.html new file mode 100644 index 0000000..a2ae154 --- /dev/null +++ b/6.0.x/index.html @@ -0,0 +1,2017 @@ + + + + + + + +Build Test Data Users Guide + + + + + + + +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          1. Introduction

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Creating maintainable test data is hard. Often an entire object graph needs to be created to support the instantiation of a single domain object. This leads to either the cutting and pasting of that creation code, or relying on a canned set of objects that we’ve grown over time and maintained as the domain objects change. After a while, adding just one more widget to that set of canned data ends up breaking tests just about every time.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          There has to be a better solution, right?

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Yep! Due to the power and the glory of Grails, we have a lot of metadata at our fingertips about those domain objects. We know what constraints we’ve placed on our objects, and which objects depend on other objects to live.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Using this additional information, we’ve created a grails plugin that makes it easy to just provide those values that you want to exercise under test and not worry about the rest of the object graph that you need to create just to instantiate your domain objects.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Once installed, all you have to do is call the new "build" method on your domain class and you’ll be given a valid instance with all of the required constraints given values.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          def author = Author.build(name: 'Ted Naleid')
                                                                                                                                                          +//or
                                                                                                                                                          +def author = TestData.build(Author, name: 'Ted Naleid')
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          1.1. Plugin Objectives

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            The definition of the domain objects under test should be next to the test code, this improves test comprehension.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            You should only need to create those fields and objects that are pertinent to the test. Other test setup is noise that obfuscates the meaning of the test.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Tests should not be dependent on other tests, only on the code under test. Therefore, the same test data should not be used by multiple tests, this creates a strong coupling and leads to test fragility.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Changes to domain objects that do not affect the the code under test should not break the test.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          1.2. Release History

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            Grails 7+ - Build Test Data 6.x

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Grails 5.x to 6.x - Build Test Data 5.x

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Grails 3.3 to 4.x - Build Test Data 4.x

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Grails 2.4.x to 3.2.x - Build Test Data 3.x

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          2. Methodology

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Over the years, a number of different methods for creating and maintaining testing data have been tried. Here’s a subset of the solutions along with some pros/cons to each of them.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          2.1. Manual Data Creation

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Creating testing data for integration tests has gone through an evolution over the years.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          It first started with all of the test data being constructed right in the body of the test method, leading to a lot of cut and paste when you hit another method.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          2.1.1. Strengths

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            the code that defines the objects under test is right next to the code that uses those objects in test.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          2.1.2. Weaknesses

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            If the objects under test rely on other objects, it can be necessary to create a large graph of objects in your test method

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Not at all DRY, cutting and pasting leads to errors and extra code that you don’t need

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            When you add a new method to an existing object (or change/delete an existing one), you need to change all of the cut/pasted lines in all of the test methods

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          JUnit (and other xUnit) testing frameworks DRYed this up by having a "setUp" method that gets called for all test methods, but this requires you to share data across all of the tests in the test class and you’re still manually creating it in each test

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          2.2. Test Fixtures

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Text fixtures allow you to use a DSL to define a named object graph. You can then refer to this object graph in a test to have the fixtures instantiated and saved to the database before running your test.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          2.2.1. Strengths

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            Fixture Plugin

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Full control over values in every object in the object graph

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          2.2.2. Weaknesses

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            Removes definition of testing data from test which can hurt test clarity. Who knows how many family members the johnsonFamily fixture has and how many the smithFamily has? You have to look at another file to find out.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Starts out well, but more and more tests start to rely on the same fixtures making them fragile. "I’ll just add another Widget to this fixture" ends up breaking 10 other tests.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Any changes to domain objects necessitate modifying every fixture that has that domain object within the object graph

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          3. Features

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Auto generation of grails property types, including:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            Domain objects using one-to-one, one-to-many, and many-to-many relationships.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Embedded domain objects

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            String

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Date

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Boolean

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Numbers (Integer, Long, Float, Short, etc)

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Byte

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            JodaTime classes

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            Any persistable class with a zero-argument constructor

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          3.1. Supported Constraints

                                                                                                                                                          +
                                                                                                                                                          + +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          3.2. Unsupported Constraints

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • +

                                                                                                                                                            scale

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            validator - custom validators can have all kinds of business logic in them and there isn’t a programmatic way to interrogate this. If the test value that’s tried doesn’t pass your logic, you’ll need to provide a value, or mock out the calls that the validator makes so that it passes.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            unique - not directly supported but it’s possible to specify your own unique value in a config file as demonstrated on the Examples page.

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          • +

                                                                                                                                                            notEqual - unlikely that our test data would match this, could be supported in the future

                                                                                                                                                            +
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          4. Installation

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The test framework and testing methodology for Grails has undergone several major revisions over the past few releases.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Unfortunately, this makes it impossible to have one plugin which is compatible with all prior versions.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          4.1. Grails 7.0 or later

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          testImplementation "io.github.longwa:build-test-data:6.0.0-M1"

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          4.2. Grails 5.0 or Grails 6.0

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          testImplementation "io.github.longwa:build-test-data:5.0.0"

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          4.3. Grails 4.0

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          testCompile "org.grails.plugins:build-test-data:4.0.0"

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          4.4. Grails 3.3

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          testCompile "org.grails.plugins:build-test-data:3.3.1"

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          4.5. Grails 3.1 and 3.2

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          testCompile "org.grails.plugins:build-test-data:3.0.1"

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +Version 3.0.x is required for Grails versions 3.0 through 3.2 +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          See the legacy Wiki documentation for details: +https://github.com/longwa/build-test-data/wiki

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          4.6. Grails 2.x

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          See the legacy Wiki documentation for details: +https://github.com/longwa/build-test-data/wiki

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5. Upgrading

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          When upgrading from older versions of Grails, first follow the standard Grails upgrade process.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5.1. Performance Improvements

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The core plugin has been refactored to reduce metaClass dependency and remove a few poor performing contructs (I’m looking at you ClassPathScanningCandidateComponentProvider).

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Most of the plugin classes have also been converted to @CompileStatic. In addition, the DomainInstanceBuilder can be cached and re-used to prevent additional overhead.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5.2. Abstract Classes

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Concrete subclasses are no longer discovered automatically. If you graph needs to build an abstract class, use the abstractDefaults parameter in TestDataConfig to specify a concrete subclass.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          abstractDefault = [
                                                                                                                                                          +    'test.AbstractBook'   : MyBook,
                                                                                                                                                          +    'test.AbstractAuthor' : Tolkien
                                                                                                                                                          +]
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5.3. Config Parameters

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Some test data config parameters such as abstractDefault and sampleData used to allow either a Class or String as the map key.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          In 3.3 and later, only a full package name String is allowed.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5.4. Disabling Via TestDataConfig

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          You can no longer disable via the testDataConfig.enabled = false option.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5.5. Build methods refactored

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          They all go through static helpers in the TestData eventually +buildLazyfindOrBuild or build(find:true) +buildWithoutSavebuild(save: false)

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5.6. Unit Tests

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Most of the work when upgrading to Grails 3.3.x will involve refactoring related to the framework itself with only minor changes for build-test-data.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          @Build([Author])
                                                                                                                                                          +class AuthorSpec extends Specification {
                                                                                                                                                          +    ...
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Just add the trait:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          @Build([Author])
                                                                                                                                                          +class AuthorSpec extends Specification implements BuildDataTest {
                                                                                                                                                          +    ...
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Optionally, use the standard Grails mock method:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class AuthorSpec extends Specification implements BuildDataTest {
                                                                                                                                                          +    void setupSpec() {
                                                                                                                                                          +        mockDomains(Author)
                                                                                                                                                          +    }
                                                                                                                                                          +    ...
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          or by overriding the getDomainClassesToMock method:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class AuthorSpec extends Specification implements BuildDataTest {
                                                                                                                                                          +    Class[] getDomainClassesToMock() {
                                                                                                                                                          +        [Author]
                                                                                                                                                          +    }
                                                                                                                                                          +    ...
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          or use with the BuildDomainTest and generics

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class AuthorSpec extends Specification implements BuildDomainTest<Author>{
                                                                                                                                                          +    ...
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +Make sure you use DomainUnitTest for unit tests and TestDataBuilder for integration tests. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          5.7. Integration Tests

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          For integration tests, follow the standard Grails upgrade instructions and then add the TestDataBuilder trait:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          @Integration
                                                                                                                                                          +@Rollback
                                                                                                                                                          +class AuthorIntegrationSpec extends Specification implements TestDataBuilder {
                                                                                                                                                          +    ...
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          6. Usage

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The plugin should be able to generate simple to moderately complex objects and satisfy all of their constraints right out of the box without any additional configuration.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          6.1. Simple Application Example

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          See the example/bookStore app for examples

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Create an Author domain class:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          grails create-domain-class com.example.Author
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          And give it the following contents:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          package bookstore
                                                                                                                                                          +
                                                                                                                                                          +class Author {
                                                                                                                                                          +    String firstName
                                                                                                                                                          +    String lastName
                                                                                                                                                          +
                                                                                                                                                          +    static hasMany = [books: Book]
                                                                                                                                                          +
                                                                                                                                                          +    static constraints = {
                                                                                                                                                          +        firstName(blank: false)
                                                                                                                                                          +        lastName(blank: false)
                                                                                                                                                          +    }
                                                                                                                                                          +    public String toString() {
                                                                                                                                                          +        "$firstName $lastName"
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Then create a Book domain class:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          grails create-domain-class com.example.Book
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          With these contents:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          package bookstore
                                                                                                                                                          +
                                                                                                                                                          +class Book {
                                                                                                                                                          +    String title
                                                                                                                                                          +    Date published
                                                                                                                                                          +    BigDecimal price
                                                                                                                                                          +
                                                                                                                                                          +    static belongsTo = [author: Author]
                                                                                                                                                          +
                                                                                                                                                          +    static constraints = {
                                                                                                                                                          +        title(blank: false)
                                                                                                                                                          +        published(nullable: false)
                                                                                                                                                          +        price(nullable: false, scale: 2, min: 5.95 as BigDecimal)
                                                                                                                                                          +        author(nullable: false)
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    public String toString() {
                                                                                                                                                          +        "$title published on $published by $author costs \$$price"
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Now, load up the grails console and lets try build on our new domain objects:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          grails console
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          6.2. build()

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          import bookstore.Author
                                                                                                                                                          +import grails.buildtestdata.TestData
                                                                                                                                                          +
                                                                                                                                                          +def a = TestData.build(Author)
                                                                                                                                                          +
                                                                                                                                                          +println "First Name: $a.firstName"
                                                                                                                                                          +println "Last Name: $a.lastName"
                                                                                                                                                          +println "Author ID: $a.id"
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The plugin will automatically create a new Author object, populate the required firstName and lastName fields, and save the object (giving it an id). If you run the script, you should see output like this:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          First Name: firstName
                                                                                                                                                          +Last Name: lastName
                                                                                                                                                          +Author ID: 1
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          By default, for String values, the plugin will just try to use the field name as the value (truncating or expanding as necessary if there are string length limitations).

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you want to specify the first name, just pass that in a map that you pass to build on the first line:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          def a = TestData.build(Author, firstName: "Daniel")
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          That modified script prints:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          First Name: Daniel
                                                                                                                                                          +Last Name: lastName
                                                                                                                                                          +Author ID: 2
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          With Book, we have a more complex domain class. It has a few different property types and it also has required related domain class of Author.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you don’t care about any of the specific values on the book, you can simply call build() to have a valid, saved book instance:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          import bookstore.*
                                                                                                                                                          +
                                                                                                                                                          +def b = Book.build()
                                                                                                                                                          +
                                                                                                                                                          +println "Book title: $b.title"
                                                                                                                                                          +println "Book price: $b.price"
                                                                                                                                                          +println "Book published: $b.published"
                                                                                                                                                          +println "Book author: $b.author"
                                                                                                                                                          +println "Book id: $b.id"
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Prints:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          Book title: title
                                                                                                                                                          +Book price: 5.95
                                                                                                                                                          +Book published: Mon Apr 13 23:11:34 CDT 2009
                                                                                                                                                          +Book author: firstName lastName
                                                                                                                                                          +Book id: 1
                                                                                                                                                          +Book author id: 3
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Again, if you want to override some of the values, you can pass them in the map:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          import com.example.*
                                                                                                                                                          +
                                                                                                                                                          +def b = Book.build(title: "Tomorrow Midnight",
                                                                                                                                                          +    author: Author.build(firstName: "Ray", lastName: "Bradbury")
                                                                                                                                                          +)
                                                                                                                                                          +
                                                                                                                                                          +println "Book title: $b.title"
                                                                                                                                                          +println "Book price: $b.price"
                                                                                                                                                          +println "Book published: $b.published"
                                                                                                                                                          +println "Book author: $b.author"
                                                                                                                                                          +println "Book id: $b.id"
                                                                                                                                                          +println "Book author id: $b.author.id"
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Resulting in:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          Book title: Tomorrow Midnight
                                                                                                                                                          +Book price: 5.95
                                                                                                                                                          +Book published: Mon Apr 13 23:13:22 CDT 2009
                                                                                                                                                          +Book author: Ray Bradbury
                                                                                                                                                          +Book id: 2
                                                                                                                                                          +Book author id: 4
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The build-test-data plugin lets you concentrate on the data that’s pertinent to your test, rather than building and maintaing large datasets that aren’t tailor made for your test.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          6.3. findOrBuild()

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Before creating an object (and it’s entire graph of required related objects) it will look to see if there’s already an object that meets the build criteria. If there is, it will return that, otherwise, it will create a new one:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          // Finds book created above with the existing author
                                                                                                                                                          +def b = Book.findOrBuild(title: "Tomorrow Midnight")
                                                                                                                                                          +assert b.author.lastName == "Bradbury"
                                                                                                                                                          +
                                                                                                                                                          +// Creates new book with author
                                                                                                                                                          +def newBook = Book.findOrBuild(title: "My Fancy New Book")
                                                                                                                                                          +assert newBook != null
                                                                                                                                                          +assert newBook.author != null
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          I find findOrBuild() to be really useful in grails console sessions where I want to create some dummy test data once and then do a number of operations on it. Previously, I had to comment out all the creation logic so that new objects weren’t getting created on every script execution. Now it’ll just return them and I can focus on writing the console code I wanted to try out rather than messing with the creation logic.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          6.4. build(save: false)

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          In some cases you need to build a domain object, but you don’t want to actually save it to the underlying data store. +This is particularly useful if you are trying to build a complex graph and need to build one of the children as part of the parent build.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          def author = Author.build(
                                                                                                                                                          +    books: [Book.build(name: 'Foo', save: false)]
                                                                                                                                                          +)
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you don’t have a complicated object graph, build with saving may not be necessary. +However, in cases where you might have a cycle in your graph, it can be necessary to successfully build the graph.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          7. Unit Testing

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Starting with Grails 3.3, unit testing is implemented via a set of traits that add support for testing the various artifacts types (Controllers, Services, Domains, etc.).

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The build-test-data plugin uses the same approach by adding the:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          trait BuildDataTest
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          This trait extends the built-in DataTest trait to setup the domain objects and domain graph for construction by build-test-data.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          For unit tests, you can use the standard getDomainClassesToMock method to provide the top-level list of domain objects that are required by the test.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class BookUnitSpec extends Specification implements BuildDataTest {
                                                                                                                                                          +    @Override
                                                                                                                                                          +    Class[] getDomainClassesToMock() {
                                                                                                                                                          +        [Book] // Author will be mocked automatically
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    void "building a book will also build an author"() {
                                                                                                                                                          +        when:
                                                                                                                                                          +        def book = Book.build()
                                                                                                                                                          +
                                                                                                                                                          +        then:
                                                                                                                                                          +        book.author != null
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          or it can be done in setupSpec

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class LibraryUnitSpec extends Specification implements BuildDataTest {
                                                                                                                                                          +    void setupSpec(){
                                                                                                                                                          +        mockDomains(Book, Magazine)
                                                                                                                                                          +    }
                                                                                                                                                          +...
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +You don’t have to explicitly declare that you are building an Author if Book has a dependency there, build-test-data will figure that out for you and tells Grails to mock it automatically. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          This plugin also provide a BuildDomainTest trait as a replacement to the grails.testing.gorm.DomainUnitTest +that allows the use of generics like so

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class BookUnitSpec extends Specification implements BuildDomainTest<Book> {
                                                                                                                                                          +
                                                                                                                                                          +    void "building a book will also build an author"() {
                                                                                                                                                          +        expect:
                                                                                                                                                          +        domain.name
                                                                                                                                                          +        domain.author
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    void "building and author will build a book"() {
                                                                                                                                                          +        when:
                                                                                                                                                          +        def author = build(Author)
                                                                                                                                                          +
                                                                                                                                                          +        expect:
                                                                                                                                                          +        author.name
                                                                                                                                                          +        author.book
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          7.1. Using @Build

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Alternately, you can continue to use the legacy build-test-data @Build annotation to specify classes to mock. The @Build annotation currently has the added bonus of supporting code completion in some editors.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          @Build([Book])
                                                                                                                                                          +class BookUnitSpec extends Specification implements BuildDataTest {
                                                                                                                                                          +    void "building a book will also build an author"() {
                                                                                                                                                          +        when:
                                                                                                                                                          +        def book = Book.build()
                                                                                                                                                          +
                                                                                                                                                          +        then:
                                                                                                                                                          +        book.author != null
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +Even if you are using the @Build annotation, you must still implement the BuildDataTest trait. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          7.2. Trait Methods

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The TestDataBuilder and therefore the BuildDataTest trait adds the builder methods to your test class if you prefer to call them directly. +These call out to statics in the TestData class.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              public <T> T build(Map args = [:], Class<T> clazz) {
                                                                                                                                                          +        TestData.build(args, clazz)
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    public <T> T build(Class<T> clazz, Map<String, Object> propValues) {
                                                                                                                                                          +        TestData.build([:], clazz, propValues)
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    public <T> T build(Map args, Class<T> clazz, Map<String, Object> propValues) {
                                                                                                                                                          +        TestData.build(args, clazz, propValues)
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    public <T> T findOrBuild(Class<T> clazz, Map<String, Object> propValues = [:]) {
                                                                                                                                                          +        TestData.build([find: true], clazz, propValues)
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          In that case you can just call build() and pass in the Class that you which to build or call the TestData methods directly. +See the groovyDocs on the TestData for more details

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class BookUnitSpec extends Specification implements BuildDataTest {
                                                                                                                                                          +    @Override
                                                                                                                                                          +    Class[] getDomainClassesToMock() {
                                                                                                                                                          +        [Book]
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    void "building a book using the trait method"() {
                                                                                                                                                          +        when:
                                                                                                                                                          +        def book = build(Book, [title: 'Book Title'])
                                                                                                                                                          +
                                                                                                                                                          +        then:
                                                                                                                                                          +        book.author != null
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          7.3. HibernateSpec Multi-Tenant

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Multi-Tenant example test using HibernateSpec

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          import static grails.buildtestdata.TestData
                                                                                                                                                          +
                                                                                                                                                          +//TestDataBuilder will take care of before to load configuratio and after methods to clear cache
                                                                                                                                                          +class MultiTenantHibernateSpec extends HibernateSpec implements TestDataBuilder {
                                                                                                                                                          +
                                                                                                                                                          +    List<Class> getDomainClasses() {
                                                                                                                                                          +        [Foo, Bar]
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    @Override
                                                                                                                                                          +    Map getConfiguration() {
                                                                                                                                                          +        [(Settings.SETTING_MULTI_TENANT_RESOLVER_CLASS)           : SystemPropertyLongTenantResolver,
                                                                                                                                                          +         (Settings.SETTING_MULTI_TENANCY_MODE)                    : 'DISCRIMINATOR',
                                                                                                                                                          +         (org.grails.orm.hibernate.cfg.Settings.SETTING_DB_CREATE): "create-drop"]
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    def cleanupSpec() {
                                                                                                                                                          +        System.setProperty(SystemPropertyLongTenantResolver.PROPERTY_NAME, '')
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    def "Do some test"(){
                                                                                                                                                          +        when:
                                                                                                                                                          +        def foo = build(Foo)
                                                                                                                                                          +
                                                                                                                                                          +        then:
                                                                                                                                                          +        foo.id
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +    def "Do some test"(){
                                                                                                                                                          +        when:
                                                                                                                                                          +        //Call on TestData directly
                                                                                                                                                          +        def bar = TestData.build(Bar, save: false)
                                                                                                                                                          +
                                                                                                                                                          +        then:
                                                                                                                                                          +        !bar.id
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          8. Integration Testing

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Integration tests don’t require the same type of setup as Unit Tests since the Grails environment is fully bootstrapped.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The plugin includes a trait that should be mixed into Integration tests to provide additional functionality:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          trait TestDataBuilder
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +The trait is not strictly required, but it does include some setup and cleanup functionality that could be useful in some cases. Additional functionality may be added in the future via this trait, so implementing it is preferred. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          8.1. Using Build Annotation

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          In prior versions, the @Build annotation was strictly for Unit Tests (it would cause numerous issues when used on integration tests, which was a common source of confusion on our projects).

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Starting with build-test-data 3.3, the @Build annotation can be used safely on integration tests. The primary reason to use it would be to take advantage of IDE autocomplete for properties when calling the DomainObject.build() method.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          9. Test Data Config

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you want to specify global defaults, you will need to create a TestDataConfig.groovy (using the examples below as a starting point):

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          src/test/resources/TestDataConfig.groovy
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The config file is most useful when you are building a class that has dependencies on an entire object graph and you want to be able to control some of the values in the object graph that gets created automatically.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          For example, if you’re building a Book, and a Book has an Author which has a Publisher. If you want to control the name of the publisher (without manually creating the entire object graph by hand), you can instead specify in the config file that when publishers are created, they should be named X:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              testDataConfig {
                                                                                                                                                          +        sampleData {
                                                                                                                                                          +            'com.example.Publisher' {
                                                                                                                                                          +                name = "Pragmatic Bookshelf"
                                                                                                                                                          +            }
                                                                                                                                                          +        }
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Then, when you build a Book, the Publisher is named appropriately:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              assert "Pragmatic Bookshelf" == Book.build().author.publisher.name
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Inside the config’s sampleData closure, you specify a domain class name. Use quotes around the fully qualified class name.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +Prior versions allowed a Class as a key for sampleData, but that is not longer supported. You must specify the entity name as a fully qualified String. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          For each class specified, you can then provide the properties that you’d like populated and give it a property value to use:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              testDataConfig {
                                                                                                                                                          +        sampleData {
                                                                                                                                                          +            'com.example.Hotel' {
                                                                                                                                                          +                name = "Hilton"
                                                                                                                                                          +            }
                                                                                                                                                          +        }
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Using that config file in a test for a com.example.Hotel domain object with a name property would produce the following results in a test:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              println Hotel.build().name   // prints "Hilton"
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          It follows the normal groovy config file pattern and you can also override things at an environmental level if desired. This example shows how in development we can return "Motel 6" but production will return "Hilton".

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              testDataConfig {
                                                                                                                                                          +        sampleData {
                                                                                                                                                          +                'com.example.Hotel' {
                                                                                                                                                          +                    name ="Motel 6"
                                                                                                                                                          +                }
                                                                                                                                                          +        }
                                                                                                                                                          +    }
                                                                                                                                                          +    environments {
                                                                                                                                                          +        production {
                                                                                                                                                          +            testDataConfig {
                                                                                                                                                          +                sampleData {
                                                                                                                                                          +                    'com.example.Hotel' {
                                                                                                                                                          +                        name = "Hilton"
                                                                                                                                                          +                    }
                                                                                                                                                          +                }
                                                                                                                                                          +            }
                                                                                                                                                          +        }
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          You are not required to have a TestDataConfig.groovy file.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          9.1. Test Specific Config

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          It’s also possible to specify a config that is used during a particular test.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Your test should implement the TestDataBuilder for integration tests or BuildDataTest for unit tests. Just override the doWithTestDataConfig method and return a Closure just like your TestDataConfig.groovy:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              Closure doWithTestDataConfig() {{->
                                                                                                                                                          +        testDataConfig {
                                                                                                                                                          +            sampleData {
                                                                                                                                                          +                'config.Hotel' {
                                                                                                                                                          +                    name = {-> "Westin" }
                                                                                                                                                          +                }
                                                                                                                                                          +            }
                                                                                                                                                          +        }
                                                                                                                                                          +    }}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          This will merge the config provided from this method with the global configuration (if any) in TestDataConfig.groovy.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +The configuration is merged at the entity level, not the attribute level. In the above example, the global sample data for the 'config.Hotel' entity will be completely replaced by this configuration. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          After using this method, you’ll likely want to call TestDataConfigurationHolder.reset() to put the configuration back to the normal config file.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              void cleanup() {
                                                                                                                                                          +        TestDataConfigurationHolder.reset()
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          9.2. Generating Dynamic Values

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you have a need to have different values given to a domain object (possibly for a unique constraint), you can instead specify a closure in your config file. This closure will be called and is expected to return the property value. Here’s an example that generates a unique title for a book:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              testDataConfig {
                                                                                                                                                          +        sampleData {
                                                                                                                                                          +            'com.foo.Book' {
                                                                                                                                                          +                def i = 1
                                                                                                                                                          +                title = {-> "title${i++}" }   // creates "title1", "title2", ...."titleN"
                                                                                                                                                          +            }
                                                                                                                                                          +        }
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          One thing to watch out for with this is that if your tests are expecting particular values generated by the closure, you could run into sequencing effects if your test run out of order (or you add a new test). To get around this, you can reset the config before you run the test. This is a good idea if you’re using dynamic values:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          void setup() {
                                                                                                                                                          +    TestDataConfigurationHolder.reset()
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          When a Closure is used as an attribute, it can additionally take 1 or 2 parameters. The first parameter is a Map of all of the properties that have been resolved so far. This allows you to configure defaults based on the values of other properties given or defaulted on the object. For example:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          'config.Hotel': {
                                                                                                                                                          +    name: { ->
                                                                                                                                                          +        i++ % 2 == 0 ? "Holiday Inn" : "Hilton"
                                                                                                                                                          +    },
                                                                                                                                                          +    faxNumber: { values ->
                                                                                                                                                          +        "Fax number for $values.name"
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The second parameter is the instance that is currently being built. In the above example, that would be the new (unsaved) instance of Hotel. This is useful if you want to build associated data and you need a reference to the parent object. For example:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          'bookstore.Author': {
                                                                                                                                                          +    books: { values, obj -> [Book.build(save: false, author: obj, title: 'James')] }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          In this case, the transient obj instance is needed so that the Book instance can associate back to the parent.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +In this case, you must use the [save: false] argument, otherwise build test data will attempt to save the Book and fail with a transient object exception on Author. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          9.3. Specifying Additional Dependencies

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Occasionally it is necessary to build another object manually in your TestDataConfig file. Usually this will look something like this:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              'test.Book' {
                                                                                                                                                          +        author = {-> Author.build() }
                                                                                                                                                          +    }
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          There are a number of reasons that you might want to do this. For complex object graphs, this may be necessary to prevent failures due to loops in the graph. +Also, for some graphs, you may need to do a build(save: false) or a findOrBuild() for a particular association. It may also just be that you want to default an optional association, since build-test-data will only build out the graph for required properties.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Regardless, this introduces a hidden dependency when building the Book class. If you only have @Build([Book]) in your test case, you’ll likely get a MethodMissing exception building Author. To resolve this issue, you may specify additional objects to mock each time Book is mocked:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          unitAdditionalBuild = ['test.Book': [test.Author]]
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Each key is the full package name of a domain object and the value is a List of either a Class or String indicating additional domains to include whenever the key object is built.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The chain is recursive in that Author could, itself, have additional dependencies. So if Book belongsTo an Author which belongsTo a Publisher, build`ing a `Book would give you all three without explicitly saying that a Book needs a Publisher with this:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          unitAdditionalBuild = [
                                                                                                                                                          +    'test.Book'     : [test.Author],
                                                                                                                                                          +    'test.Author'   : [test.Publisher]
                                                                                                                                                          +]
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Again, this is only needed for Unit testing as Grails includes all domain objects, by default, for integration tests.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          9.4. Building Abstract Classes

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If your domain classes reference abstract classes, build test data needs to know which concrete class to build to satisfy the dependencies.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          By using the abstractDefault configuration option, you can override this behavior globally to indicate which specific subclass is desired for a given base class.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              abstractDefault = [
                                                                                                                                                          +        'test.AbstractBook'   : MyBook,
                                                                                                                                                          +        'test.AbstractAuthor' : Tolkien
                                                                                                                                                          +    ]
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          In this example, any time BTD needs to build an AbstractBook, it will build an instance of MyBook by default. If you only want to override the subclass for a particular domain object, you may want to consider just adding a default value in sampleData.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          This default will also apply if you manually build an instance of an abstract class. For example, calling AbstractBook.build() in this example will return a MyBook instance.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + + + +
                                                                                                                                                          + + +
                                                                                                                                                          Behavior Change
                                                                                                                                                          +Prior to version 3.3, build-test-data would automatically try to find a concrete subclass. However, this was horribly slow as Java makes it very difficult to accomplish this task. For this reason, it’s now required to use abstractDefaults when subclasses are required. +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          9.5. Using a different name for TestDataConfig.groovy

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          In some cases you need to have a different name for TestDataConfig.groovy. The reason could be, that you have project that depends on several inline plugins all using this plugin. If all plugins contains TestDataConfig.groovy you will end up with a compile error saying that TestDataConfig.groovy is duplicated in your classpath.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Using a different name by setting this in application.groovy:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          grails.buildtestdata.testDataConfig = "MyTestDataConfig"
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          With Grails 3, you would add to application.yml:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                              grails:
                                                                                                                                                          +        buildtestdata:
                                                                                                                                                          +            testDataConfig: "MyTestDataConfig"
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          and rename your TestDataConfig.groovy to MyTestDataConfig.groovy

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          10. Examples

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Once you have the plugin installed, it should be as easy as calling build() on any of your domain objects in your tests.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you don’t pass any parameters to build, it will attempt to provide values for all of the properties that it determines have required values based on the constraints. This includes other domain objects.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you want to specify particular values, you can pass build a map (just like you can to a domain object constructor). The plugin will attempt to create new values for any required properties that you don’t specify in the map.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          domainObject.build(myProperty:'myPropertyValue')
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          The build method default is to attempt to save the populated domain object. You can avoid saving the object first by calling the buildWithoutSave method:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          domainObject.buildWithoutSave(myProperty:'myPropertyValue')
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          10.1. Working with Unique Constraints

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          There currently isn’t built-in support for uniqueness constraints, but it’s pretty easy to get this working using a closure in the config file to generate a series of unique values.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          testDataConfig {
                                                                                                                                                          +    sampleData {
                                                                                                                                                          +        'com.foo.Book' {
                                                                                                                                                          +             def i = 1
                                                                                                                                                          +             title = {-> "title${i++}" }   // creates "title1", "title2",...
                                                                                                                                                          +        }
                                                                                                                                                          +    }
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If your test cares about this unique value, you’ll likely want to reset the configuration either directly in your test or in the setUp of the test. Otherwise, other tests could have grabbed the value that you were expecting. To reset the configuration back to the original state, use this:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          TestDataConfigurationHolder.reset()
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          10.2. Building Objects and Building Associated Child Objects

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          When you have a parent object that you want to have specific child objects, here’s one way this can be done.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          class Issue {
                                                                                                                                                          +    String title
                                                                                                                                                          +    static hasMany = [pages: Page]
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +class Page {
                                                                                                                                                          +    Integer number
                                                                                                                                                          +    static hasMany = [advertisments: Advertisment]
                                                                                                                                                          +    static belongsTo = [issue: Issue]
                                                                                                                                                          +}
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          You can create an issue and then give it pages:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          // Build the issue first
                                                                                                                                                          +def issue = Issue.build()
                                                                                                                                                          +
                                                                                                                                                          +(1..5).collect { Page.build(issue: issue, number: it) }
                                                                                                                                                          +
                                                                                                                                                          +// Pages are automatically added to the issue's hasMany pages collection
                                                                                                                                                          +assertEquals 5, issue.pages.size()
                                                                                                                                                          +
                                                                                                                                                          +// Don't build extra issues when building pages
                                                                                                                                                          +assertEquals 1, Issue.list().size()
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          We don’t want to build the Page objects before we have the Issue otherwise the build method will create dummy issues in the database for each page (and that last assert would fail).

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          10.3. Assigning System Wide Default Values

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          Having build assign system wide default property values, or give values to classes that are "distant" in the object graph from the object you’re building can all be done with the configuration file.

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          10.4. Logging Information

                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you want to see the detail of what objects the plugin is trying to save, you can set the logging level for the DomainTestDataService and the DomainInstanceBuilder to info. Just stick this line in your 'logback.groovy'

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          logger("grails.buildtestdata.DomainInstanceBuilder", INFO)
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +

                                                                                                                                                          If you want to see all of the gory detail about what the plugin is doing as it traverses the object graph and examines each property, set the logging level to debug and add in the property handlers:

                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          logger("grails.buildtestdata", DEBUG)
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          + + + \ No newline at end of file