Skip to content

Commit

Permalink
consistency on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Dec 9, 2024
1 parent dbac627 commit 07015da
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/specs/cache/providers/CFColdBoxProviderTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

// Configure the provider
cache.configure();
// Clear everything first
cache.clearAll();
}

function testPrefixes(){
Expand Down
2 changes: 2 additions & 0 deletions tests/specs/cache/providers/CFProviderTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

// Configure the provider
cache.configure();
// Clear everything first
cache.clearAll();
}

function teardown(){
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/cache/providers/CacheBoxProviderTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,15 @@
cache.setConfiguration( config );
cache.setCacheFactory( mockFactory );
cache.setEventManager( mockEventManager );

// Mock The Scheduler, we don't need any reaping async
var mockSchedule = prepareMock(
mockExecutor.newSchedule( function(){
debug( "In Mock Executor" );
} )
);
mockExecutor.$( "newSchedule", mockSchedule );

// Configure the provider
cache.configure();

// Clear everything first
cache.clearAll();
}
Expand Down
10 changes: 9 additions & 1 deletion tests/specs/cache/providers/CacheBoxWithConcurrentStoreTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,17 @@
cache.setConfiguration( config );
cache.setCacheFactory( mockFactory );
cache.setEventManager( mockEventManager );

// Mock The Scheduler, we don't need any reaping async
var mockSchedule = prepareMock(
mockExecutor.newSchedule( function(){
debug( "In Mock Executor" );
} )
);
mockExecutor.$( "newSchedule", mockSchedule );
// Configure the provider
cache.configure();
// Clear everything first
cache.clearAll();
}

function testResetAccess(){
Expand Down
9 changes: 9 additions & 0 deletions tests/specs/cache/providers/CacheBoxWithDiskSoreTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,17 @@
cache.setCacheFactory( mockFactory );
cache.setEventManager( mockEventManager );

// Mock The Scheduler, we don't need any reaping async
var mockSchedule = prepareMock(
mockExecutor.newSchedule( function(){
debug( "In Mock Executor" );
} )
);
mockExecutor.$( "newSchedule", mockSchedule );
// Configure the provider
cache.configure();
// Clear everything first
cache.clearAll();
}

}
9 changes: 9 additions & 0 deletions tests/specs/cache/providers/CacheBoxWithJDBCSoreTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@
cache.setCacheFactory( mockFactory );
cache.setEventManager( mockEventManager );

// Mock The Scheduler, we don't need any reaping async
var mockSchedule = prepareMock(
mockExecutor.newSchedule( function(){
debug( "In Mock Executor" );
} )
);
mockExecutor.$( "newSchedule", mockSchedule );
// Configure the provider
cache.configure();
// Clear everything first
cache.clearAll();
}

}
2 changes: 2 additions & 0 deletions tests/specs/cache/providers/LuceeColdBoxProviderTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

// Configure the provider
cache.configure();
// Clear everything first
cache.clearAll();
}

function testPrefixes(){
Expand Down
2 changes: 2 additions & 0 deletions tests/specs/cache/providers/LuceeProviderTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

// Configure the provider
cache.configure();
// Clear everything first
cache.clearAll();
}

function teardown(){
Expand Down

0 comments on commit 07015da

Please sign in to comment.