Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
config service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kefirfromperm committed Feb 24, 2017
1 parent 325b81e commit fad2512
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 25 deletions.
1 change: 0 additions & 1 deletion grails-app/conf/application.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ environments {
url = 'jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE'
}
quartz.jdbcStore = false
asynchronous.mail.disable.true
}
}

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
}
}

This file was deleted.

0 comments on commit fad2512

Please sign in to comment.