You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// final Author author = new Author( "Abdul Alhazred", spells );
130
125
131
-
test( context,
126
+
test(
127
+
context,
132
128
openSession()
133
-
.thenCompose( s -> s.persist(spells).thenCompose( v -> s.flush() ) )
129
+
.thenCompose( s -> s.persist(spells).thenCompose( v -> s.flush() ) )
134
130
.thenCompose( vv -> openSession()
135
-
.thenCompose( s -> s.withTransaction( t -> s.createMutationQuery("update SpellBook set title='x' where forbidden=false").executeUpdate() )
136
-
.thenCompose( v -> s.withTransaction( t -> s.createMutationQuery("update SpellBook set forbidden=false where title='Necronomicon'").executeUpdate() ) )
137
-
.thenCompose( v -> s.withTransaction( t -> s.createMutationQuery("update Book set title=title||' II' where title='Necronomicon'").executeUpdate() ) )
138
-
.thenCompose( v -> s.find(Book.class, 6) )
131
+
.thenCompose( s -> s.withTransaction( t -> s
132
+
.createMutationQuery( "update SpellBook set title='x' where forbidden=false" )
133
+
.executeUpdate() )
134
+
.thenCompose( v -> s.withTransaction( t -> s
135
+
.createMutationQuery( "update SpellBook set forbidden=false where title='Necronomicon'" )
136
+
.executeUpdate() ) )
137
+
.thenCompose( v -> s.withTransaction( t -> s
138
+
.createMutationQuery( "update Book set title=title||' II' where title='Necronomicon'" )
139
+
.executeUpdate() ) )
140
+
.thenCompose( v -> s.find( Book.class, 6 ) )
139
141
.thenAccept( book -> {
140
-
assertNotNull(book);
141
-
assertTrue(bookinstanceofSpellBook);
142
-
assertEquals(book.getTitle(), "Necronomicon II");
142
+
assertThat( book ).isInstanceOf( SpellBook.class );
0 commit comments