Wrote a test case for count, will fail
Classes for Dryad core model API
Refactored to use Dryad core Model API
Update test to create a data package before count
Configure dspace.cfg file when running api-stats tests
Add database_dryad_groups_collections.sql

Moving from dryad-bootstrap.sql in https://github.com/datadryad/vagrant-dryad
Turn off authorization system, allow item creation
Add metadataregistry sql for test database
Commit changes after setting publication name
Call Update after setting publicationName
Link objects to collection and archive on creation
Notes about archive status for counting
Update test to check for count+1

Test now passes

Expects database to exist. Locally I’ve been using test database installed with this:

    #!/bin/sh

    DRYAD_CODE_DIR="/Users/dan/Code/dryad-repo"

    # Wipes the test database on my local machine

    # Drop the dryad_test database
    dropdb -U dan dryad_test
    # create test user if needed
    psql -U dan -c "create user dryad_test_user with createdb;"
    createdb -U dryad_test_user dryad_test

    # Load database schema
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_schema.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_create_doi_table.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_change_payment_system.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_terms_and_condition.sql

    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/collection-workflow-changes.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/atmire-versioning-changes.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_dryad_groups_collections.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/database_dryad_metadata_registry.sql
    psql dryad_test -U dryad_test_user < ${DRYAD_CODE_DIR}/dspace/etc/postgres/update-sequences.sql

And running maven with:

    mvn package -Dmaven.test.skip=false -Ddefault.dspace.dir=/opt/dryad-test

With /opt/dryad-test created by travis config

https://github.com/dleehr/dryad-repo/blob/travis/test/bin/travis-install-dryad-dir.sh
Add DataFileCount and Test
Refactored File and Package counts to base class
fixup
WIP
Refactored DryadObject to wrap an Item
Initial pass at counting embargoed files

Includes API for embargo control
Fix date format in DryadDataFile