org.springframework.core.task.NoOpRunnable Java Examples

The following examples show how to use org.springframework.core.task.NoOpRunnable. 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: ConcurrentTaskExecutorTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Test
public void passingNullExecutorToSetterResultsInDefaultTaskExecutorBeingUsed() {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
	executor.setConcurrentExecutor(null);
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #2
Source File: ConcurrentTaskExecutorTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Test
public void passingNullExecutorToSetterResultsInDefaultTaskExecutorBeingUsed() {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
	executor.setConcurrentExecutor(null);
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #3
Source File: ConcurrentTaskExecutorTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Test
public void passingNullExecutorToSetterResultsInDefaultTaskExecutorBeingUsed() throws Exception {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
	executor.setConcurrentExecutor(null);
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #4
Source File: ConcurrentTaskExecutorTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Test
public void zeroArgCtorResultsInDefaultTaskExecutorBeingUsed() {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #5
Source File: ConcurrentTaskExecutorTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Test
public void passingNullExecutorToCtorResultsInDefaultTaskExecutorBeingUsed() {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor(null);
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #6
Source File: ScheduledExecutorFactoryBeanTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
public NoOpScheduledExecutorTask() {
	super(new NoOpRunnable());
}
 
Example #7
Source File: ConcurrentTaskExecutorTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Test
public void zeroArgCtorResultsInDefaultTaskExecutorBeingUsed() {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #8
Source File: ConcurrentTaskExecutorTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Test
public void passingNullExecutorToCtorResultsInDefaultTaskExecutorBeingUsed() {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor(null);
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #9
Source File: ScheduledExecutorFactoryBeanTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
public NoOpScheduledExecutorTask() {
	super(new NoOpRunnable());
}
 
Example #10
Source File: ConcurrentTaskExecutorTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Test
public void zeroArgCtorResultsInDefaultTaskExecutorBeingUsed() throws Exception {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #11
Source File: ConcurrentTaskExecutorTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Test
public void passingNullExecutorToCtorResultsInDefaultTaskExecutorBeingUsed() throws Exception {
	ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor(null);
	// must not throw a NullPointerException
	executor.execute(new NoOpRunnable());
}
 
Example #12
Source File: ScheduledExecutorFactoryBeanTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
public NoOpScheduledExecutorTask() {
	super(new NoOpRunnable());
}