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
120
131
-
test( context,
121
+
test(
122
+
context,
132
123
openSession()
133
-
.thenCompose( s -> s.persist(spells).thenCompose( v -> s.flush() ) )
124
+
.thenCompose( s -> s.persist(spells).thenCompose( v -> s.flush() ) )
134
125
.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) )
126
+
.thenCompose( s -> s.withTransaction( t -> s
127
+
.createMutationQuery( "update SpellBook set title='x' where forbidden=false" )
128
+
.executeUpdate() )
129
+
.thenCompose( v -> s.withTransaction( t -> s
130
+
.createMutationQuery( "update SpellBook set forbidden=false where title='Necronomicon'" )
131
+
.executeUpdate() ) )
132
+
.thenCompose( v -> s.withTransaction( t -> s
133
+
.createMutationQuery( "update Book set title=title||' II' where title='Necronomicon'" )
134
+
.executeUpdate() ) )
135
+
.thenCompose( v -> s.find( Book.class, 6 ) )
139
136
.thenAccept( book -> {
140
-
assertNotNull(book);
141
-
assertTrue(bookinstanceofSpellBook);
142
-
assertEquals(book.getTitle(), "Necronomicon II");
137
+
assertThat( book ).isInstanceOf( SpellBook.class );
0 commit comments