Skip to content

Commit

Permalink
Add unit tests for Queue
Browse files Browse the repository at this point in the history
  • Loading branch information
aplotnikov committed Oct 28, 2018
1 parent c86a2cd commit 54a8b57
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package io.github.aplotnikov.batch.processing.reactor.source

import reactor.test.StepVerifier
import spock.lang.Specification
import spock.lang.Subject

class QueueSpec extends Specification {

@Subject
Queue queue = new Queue(2, 0)

void 'should generate 2 files into Flux and Flux should be completed'() {
expect:
StepVerifier.create(queue.poll())
.expectNext('client.xml')
.expectNext('client.xml')
.expectComplete()
.verify()
}
}

0 comments on commit 54a8b57

Please sign in to comment.