Juergen Hoeller
60c7af3625
Mention HikariCP next to DBCP and C3P0 in connection pool notes
...
Closes gh-24405
6 years ago
Sam Brannen
734db23f4e
Fix Checkstyle violation
...
See gh-gh-24358
6 years ago
Sam Brannen
f527ca7515
Update copyright date
6 years ago
hyeonisism
89b8449999
Simplify getParsedSql() method in NamedParameterJdbcTemplate
...
Closes gh-24358
6 years ago
Sam Brannen
798744838c
Revise exception handling in AbstractEmbeddedDatabaseConfigurer
...
See gh-24337
6 years ago
Sam Brannen
7cd4ddf5fc
Rename test fixture package in spring-beans
...
See gh-23550
6 years ago
Sam Brannen
4260c34b47
Rename test fixture package in spring-core
...
See gh-23550
6 years ago
Sam Brannen
61d4ee594d
Use Gradle test fixture support for spring-beans and spring-context
...
See gh-23550
6 years ago
Sam Brannen
5718bf424b
Use Gradle test fixture support for spring-core
...
See gh-23550
6 years ago
Juergen Hoeller
02b40223e5
Polishing
6 years ago
perceptron8
dafe57fc6e
Add BeanPropertyRowMapper.newInstance(mappedClass, conversionService)
...
Similar to SingleColumnRowMapper.newInstance(requiredType,
conversionService) which was added in #1678 .
6 years ago
Juergen Hoeller
a5f2d8c222
Mark SqlRowSet accessor methods as nullable (for alignment with JDBC)
...
Closes gh-24042
6 years ago
Juergen Hoeller
990bfd8772
Support for new MySQL 8 error code 3572
...
Closes gh-23972
6 years ago
Juergen Hoeller
773b2f06a1
Avoid Connection.isReadOnly() call in resetConnectionAfterTransaction
...
Closes gh-23747
6 years ago
Juergen Hoeller
2861fc65bd
Polishing
7 years ago
Kwon Young Jae
6063c00e4e
Delete obsolete comment in RowMapperTests
...
Closes gh-23643
7 years ago
Phillip Webb
d945ae9191
Add blank line between java and javax imports
...
See gh-23539
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
7 years ago
康智冬
0d742cf3d0
Fix typos related to indefinite articles for SQL acronym
...
Closes gh-23603
7 years ago
Phillip Webb
deba2ed1b3
Add blank line between java and javax imports
...
See gh-23539
7 years ago
Sebastien Deleuze
ca02cc1194
Migrate to AssertJ in Kotlin tests
...
Closes gh-23475
7 years ago
Sam Brannen
ad6231ad29
Add missing @Override annotations
7 years ago
Sam Brannen
288461a541
Introduce @EnabledForTestGroups in Spring's test suite
...
Closes gh-23476
7 years ago
Sam Brannen
979508a7f3
Remove JUnit 4 dependency from all modules except spring-test
...
This commit removes the JUnit 4 dependency from all modules except
spring-test which provides explicit JUnit 4 support.
This commit also includes the following.
- migration from JUnit 4 assertions to JUnit Jupiter assertions in all
Kotlin tests
- migration from JUnit 4 assumptions in Spring's TestGroup support to
JUnit Jupiter assumptions, based on org.opentest4j.TestAbortedException
- introduction of a new TestGroups utility class than can be used from
existing JUnit 4 tests in the spring-test module in order to perform
assumptions using JUnit 4's Assume class
See gh-23451
7 years ago
Sam Brannen
3f3e41923f
Migrate rest of test suite from JUnit 4 to JUnit Jupiter
...
This commit migrates the rest of Spring's test suite to JUnit Jupiter,
except spring-test which will be migrated in a separate commit.
See gh-23451
7 years ago
Sam Brannen
6c0e550b86
Polish contribution
...
See gh-23445
7 years ago
zhuzhuman978
849bbf00b5
Simplify if statements and replace try-finally with try-with-resources
...
Closes gh-23445
7 years ago
Juergen Hoeller
7c2e2d40af
Polishing
7 years ago
Juergen Hoeller
d8e624e97e
Consistent suppression of get/clearWarnings without target connection
...
See gh-23346
7 years ago
Juergen Hoeller
871bb57e02
TransactionAwareDataSourceProxy locally handles get/clearWarnings call
...
Closes gh-23346
7 years ago
Sam Brannen
c788be30fe
Polish contribution
...
See gh-23289
7 years ago
Phillip Webb
b5e4e02337
Polish ScriptUtilsUnitTests
7 years ago
Phillip Webb
17914fc44b
Add multi-prefix comment support for SQL scripts
...
Update `ResourceDatabasePopulator` and `ScriptUtils` so that more than
one comment prefix can be used when processing SQL scripts. This
feature is particularly useful when dealing with scripts provided by
Quartz since they often use a mix `--` and `#`.
Closes gh-23289
7 years ago
Juergen Hoeller
1ccd99ebe7
Polishing
7 years ago
Juergen Hoeller
98a49b46b7
NamedParameterJdbcTemplate only treats Iterables like Collections
...
Closes gh-22981
7 years ago
Juergen Hoeller
7dc92aa05d
Polishing
7 years ago
Juergen Hoeller
eeb79c8dde
NamedParameterJdbcTemplate treats arrays/Iterables like Collections
...
Closes gh-22981
7 years ago
Sam Brannen
141ef9082f
Clean up Mockito usage
...
This commit migrates to the MockitoJUnitRunner where sensible, which
will later allow for an easier migration to Mockito's extension for
JUnit Jupiter.
In addition, this commit deletes unnecessary stubbing for various mocks
and polishes test fixture setup in various test classes.
7 years ago
Sam Brannen
4b9f5a35a6
Polish contribution
7 years ago
Сергей Цыпанов
6964ed33bf
Allocate objects only when it's necessary
...
Closes gh-23036
7 years ago
stsypanov
4cc7b9b9fc
tiny simplifications regarding usage of Iterator
7 years ago
Sam Brannen
f47481749b
Fix Checkstyle violation
7 years ago
Sam Brannen
a4cd547b7e
Fix ScriptUtilsUnitTests
7 years ago
chrunchyjesus
771a05e878
Fix ScriptUtils for MS Windows line ending
...
Prior to this commit, ScriptUtils did not properly split SQL
scripts that contained line endings for MS Windows.
Closes gh-23019
7 years ago
Phillip Webb
9d74da006c
Migrate JUnit 4 assertions to AssertJ
...
Migrate all existing JUnit 4 `assert...` based assertions to AssertJ
and add a checkstyle rule to ensure they don't return.
See gh-23022
7 years ago
Phillip Webb
95a9d46a87
Migrate Hamcrest assertions to AssertJ
...
Migrate all existing `assertThat(..., Matcher)` assertions to AssertJ
and add checkstyle rules to ensure they don't return.
See gh-23022
7 years ago
Phillip Webb
02850f357f
Migrate exception checking tests to use AssertJ
...
Migrate tests that use `@Test(expectedException=...)` or
`try...fail...catch` to use AssertJ's `assertThatException`
instead.
7 years ago
Sam Brannen
73dbd06361
Enforces static imports for JUnit 4 assertions and assumptions
...
This commit configures Checkstyle to enforces static imports for JUnit 4
assertions and assumptions.
See gh-22932
7 years ago
Phillip Webb
816bbee8de
Remove '.*' imports from tests
...
Organize test imports to expand all '.*' static imports into
fully qualified imports.
This update will allow us to use additional checkstyle rules in
the future, and will also help if we migrate fully to AssertJ.
7 years ago
Phil Webb
d7320de871
Migrate away from ExpectedException ( #22922 )
...
* Add limited checkstyles to test code
Add a limited set of checkstyle rules to the test codebase to improve
code consistency.
* Fix checksyle violations in test code
* Organize imports to fix checkstyle for test code
* Migrate to assertThatExceptionOfType
Migrate aware from ExpectedException rules to AssertJ exception
assertions. Also include a checkstyle rules to ensure that the
the ExpectedException is not accidentally used in the future.
See gh-22894
7 years ago
Sam Brannen
4aaec942c4
Introduce HTTPS mappings in spring.schemas files
...
Closes gh-22903
7 years ago