org.springframework.test.annotation.Timed Java Examples
The following examples show how to use
org.springframework.test.annotation.Timed.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConnectionLeakIntegrationTest.java From embedded-database-spring-test with Apache License 2.0 | 5 votes |
@Test @Repeat(30) @Timed(millis = 30000) @FlywayTest(locationsForMigrate = "db/test_migration/appendable") public void testEmbeddedDatabase() { List<Map<String, Object>> persons = jdbcTemplate.queryForList(SQL_SELECT_PERSONS); assertThat(persons).isNotNull().hasSize(2); }
Example #2
Source File: RepeatedSpringRunnerTests.java From spring-analysis-note with MIT License | 5 votes |
@Test @Timed(millis = 20) @Repeat(4) public void firstRepetitionOfManyExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(25); }
Example #3
Source File: RepeatedSpringRunnerTests.java From spring-analysis-note with MIT License | 5 votes |
@Test @Timed(millis = 100) @Repeat(10) public void collectiveRepetitionsExceedTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(11); }
Example #4
Source File: TimedTransactionalSpringRunnerTests.java From java-technology-stack with MIT License | 5 votes |
@Test @Transactional(propagation = Propagation.NOT_SUPPORTED) @Timed(millis = 10000) @Repeat(5) public void notTransactionalWithSpringTimeout() { assertInTransaction(false); }
Example #5
Source File: RepeatedSpringRuleTests.java From java-technology-stack with MIT License | 5 votes |
@Test @Timed(millis = 20) @Repeat(4) public void firstRepetitionOfManyExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(25); }
Example #6
Source File: RepeatedSpringRuleTests.java From java-technology-stack with MIT License | 5 votes |
@Test @Timed(millis = 100) @Repeat(10) public void collectiveRepetitionsExceedTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(11); }
Example #7
Source File: RepeatedSpringRunnerTests.java From java-technology-stack with MIT License | 5 votes |
@Test @Timed(millis = 10) @Repeat(1) public void singleRepetitionExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(15); }
Example #8
Source File: RepeatedSpringRunnerTests.java From java-technology-stack with MIT License | 5 votes |
@Test @Timed(millis = 20) @Repeat(4) public void firstRepetitionOfManyExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(25); }
Example #9
Source File: RepeatedSpringRunnerTests.java From java-technology-stack with MIT License | 5 votes |
@Test @Timed(millis = 100) @Repeat(10) public void collectiveRepetitionsExceedTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(11); }
Example #10
Source File: RepeatedSpringRuleTests.java From java-technology-stack with MIT License | 5 votes |
@Test @Timed(millis = 10) @Repeat(1) public void singleRepetitionExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(15); }
Example #11
Source File: TimedTransactionalSpringRunnerTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @Transactional(propagation = Propagation.NOT_SUPPORTED) @Timed(millis = 10000) @Repeat(5) public void notTransactionalWithSpringTimeout() { assertInTransaction(false); }
Example #12
Source File: RepeatedSpringRuleTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @Timed(millis = 10) @Repeat(1) public void singleRepetitionExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(15); }
Example #13
Source File: RepeatedSpringRuleTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @Timed(millis = 20) @Repeat(4) public void firstRepetitionOfManyExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(25); }
Example #14
Source File: RepeatedSpringRuleTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @Timed(millis = 100) @Repeat(10) public void collectiveRepetitionsExceedTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(11); }
Example #15
Source File: RepeatedSpringRunnerTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @Timed(millis = 10) @Repeat(1) public void singleRepetitionExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(15); }
Example #16
Source File: RepeatedSpringRunnerTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @Timed(millis = 20) @Repeat(4) public void firstRepetitionOfManyExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(25); }
Example #17
Source File: RepeatedSpringRunnerTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @Timed(millis = 100) @Repeat(10) public void collectiveRepetitionsExceedTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(11); }
Example #18
Source File: RepeatedSpringRuleTests.java From spring-analysis-note with MIT License | 5 votes |
@Test @Timed(millis = 10) @Repeat(1) public void singleRepetitionExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(15); }
Example #19
Source File: TimedTransactionalSpringRunnerTests.java From spring-analysis-note with MIT License | 5 votes |
@Test @Transactional(propagation = Propagation.NOT_SUPPORTED) @Timed(millis = 10000) @Repeat(5) public void notTransactionalWithSpringTimeout() { assertInTransaction(false); }
Example #20
Source File: RepeatedSpringRunnerTests.java From spring-analysis-note with MIT License | 5 votes |
@Test @Timed(millis = 10) @Repeat(1) public void singleRepetitionExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(15); }
Example #21
Source File: RepeatedSpringRuleTests.java From spring-analysis-note with MIT License | 5 votes |
@Test @Timed(millis = 20) @Repeat(4) public void firstRepetitionOfManyExceedsTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(25); }
Example #22
Source File: RepeatedSpringRuleTests.java From spring-analysis-note with MIT License | 5 votes |
@Test @Timed(millis = 100) @Repeat(10) public void collectiveRepetitionsExceedTimeout() throws Exception { incrementInvocationCount(); Thread.sleep(11); }
Example #23
Source File: RepeatedSpringRuleTests.java From spring-analysis-note with MIT License | 4 votes |
@Test @Timed(millis = 10000) public void nonAnnotated() throws Exception { incrementInvocationCount(); }
Example #24
Source File: RepeatedSpringRuleTests.java From spring-analysis-note with MIT License | 4 votes |
@Test @Repeat(-5) @Timed(millis = 10000) public void negativeRepeatValue() throws Exception { incrementInvocationCount(); }
Example #25
Source File: TimedSpringRunnerTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test @Timed(millis = 2000) public void springTimeoutWithNoOp() { /* no-op */ }
Example #26
Source File: TimedSpringRunnerTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test @Timed(millis = 100) public void springTimeoutWithSleep() throws Exception { Thread.sleep(200); }
Example #27
Source File: TimedSpringRunnerTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test(timeout = 200) @Timed(millis = 200) public void springAndJUnitTimeouts() { /* no-op */ }
Example #28
Source File: RepeatedSpringRuleTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test @Timed(millis = 10000) public void nonAnnotated() throws Exception { incrementInvocationCount(); }
Example #29
Source File: RepeatedSpringRuleTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test @Repeat @Timed(millis = 10000) public void defaultRepeatValue() throws Exception { incrementInvocationCount(); }
Example #30
Source File: RepeatedSpringRuleTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test @Repeat(-5) @Timed(millis = 10000) public void negativeRepeatValue() throws Exception { incrementInvocationCount(); }