This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
325b81e
commit fad2512
Showing
3 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/integration-test/groovy/grails/plugin/asyncmail/AsynchronousMailConfigServiceSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package grails.plugin.asyncmail | ||
|
||
import grails.test.mixin.integration.Integration | ||
import spock.lang.Specification | ||
|
||
/** | ||
* Test default configuration | ||
*/ | ||
@Integration | ||
class AsynchronousMailConfigServiceSpec extends Specification { | ||
AsynchronousMailConfigService asynchronousMailConfigService | ||
|
||
void "test configuration"() { | ||
expect: "the service returns defult values" | ||
asynchronousMailConfigService.defaultAttemptInterval == 300000l | ||
asynchronousMailConfigService.defaultMaxAttemptCount == 1 | ||
asynchronousMailConfigService.sendRepeatInterval == 60000l | ||
asynchronousMailConfigService.expiredCollectorRepeatInterval == 607000l | ||
asynchronousMailConfigService.messagesAtOnce == 100 | ||
asynchronousMailConfigService.sendImmediately | ||
!asynchronousMailConfigService.clearAfterSent | ||
!asynchronousMailConfigService.disable | ||
asynchronousMailConfigService.useFlushOnSave | ||
asynchronousMailConfigService.persistenceProvider == 'hibernate4' | ||
!asynchronousMailConfigService.newSessionOnImmediateSend | ||
asynchronousMailConfigService.taskPoolSize == 1 | ||
!asynchronousMailConfigService.mongo | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
src/test/groovy/grails/plugin/asyncmail/AsynchronousMailConfigServiceSpec.groovy
This file was deleted.
Oops, something went wrong.