Skip to content

Implement aggregate test for expectedExceptions #9

@andreassimon

Description

@andreassimon

for example

    @Test(timeout = 1000L)
    void should_not_be_changed_after_deletion() {
        given {
            event(printmediumId, new Printmedium_was_created(pages: 4, basePDF: aPdfFile))
            event(printmediumId, new Printmedium_was_deleted())
        }

        expectException(PrintmediumWasDeletedException) {
            get(Printmedium, printmediumId).rename('New name')
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions