Changeset 5024


Ignore:
Timestamp:
Jul 27, 2009, 1:54:33 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #1351: Add a function that removes unwanted items from the database at regular intervals

Fixed problems with remaining garbage when TestAll? was executed multiple times.

Location:
trunk/src/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/TestAnyToAny.java

    r5021 r5024  
    4949    write("++Testing any-to-any");
    5050    write_header();
     51   
     52    // Delete "garbage" from previous tests
     53    AnyToAny.deleteStrayLinks(null);
     54   
    5155    // Standard tests: create, load, list
    5256    int sampleId = TestSample.test_create(0, null, true);
  • trunk/src/test/TestItemKey.java

    r5023 r5024  
    3939    write("++Testing item key");
    4040    write_header();
     41   
     42    // Delete "garbage" from previous tests
     43    ItemKey.deleteUnusedItemKeys();
     44
    4145    // Extra test: create user and group for the key
    4246    int userId = TestUser.test_create(true);
  • trunk/src/test/TestProjectKey.java

    r5023 r5024  
    4141    write("++Testing project key");
    4242    write_header();
     43   
     44    // Delete "garbage" from previous tests
     45    ProjectKey.deleteUnusedProjectKeys();
     46   
    4347    // Extra test: create project for the key
    4448    int projectId = TestProject.test_create(true);
Note: See TracChangeset for help on using the changeset viewer.