Skip to content

Commit f9f6d3b

Browse files
committed
[tests] Correct commented out test for junit 5
test still doesn't work so leave it commented out.
1 parent dd4cb0b commit f9f6d3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/java/org/mybatis/spring/transaction/SpringTransactionManagerTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 the original author or authors.
2+
* Copyright 2010-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,6 +42,8 @@ void shouldNoOpWithTx() throws Exception {
4242
txManager.commit(status);
4343
}
4444

45+
// TODO Test does not compile
46+
// @Disabled
4547
// @Test
4648
// public void shouldManageWithOtherDatasource() throws Exception {
4749
// DefaultTransactionDefinition txDef = new DefaultTransactionDefinition();
@@ -53,8 +55,8 @@ void shouldNoOpWithTx() throws Exception {
5355
// false);
5456
// transaction.commit();
5557
// transaction.close();
56-
// assertEquals("should call commit on Connection", 1, connection.getNumberCommits());
57-
// assertTrue("should close the Connection", connection.isClosed());
58+
// assertEquals(1, connection.getNumberCommits(), "should call commit on Connection");
59+
// assertTrue(connection.isClosed(), "should close the Connection");
5860
//
5961
// txManager.commit(status);
6062
// }

0 commit comments

Comments
 (0)