Skip to content

Commit

Permalink
Test the Autowired bean of context.
Browse files Browse the repository at this point in the history
  • Loading branch information
haiqi committed May 18, 2021
1 parent 8fe1f9e commit 074f79c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,24 @@
*/
package org.search.nibrs.route;

import org.apache.camel.CamelContext;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.search.nibrs.fbi.service.NibrsFbiServiceApplication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.util.Assert;

@RunWith(SpringRunner.class)
@SpringBootTest
@SpringBootTest(classes = NibrsFbiServiceApplication.class)
public class NibrsRouteApplicationTests {

@Autowired
CamelContext context;
@Test
public void contextLoads() {
Assert.notNull(context, "the camel context should not be null");
}

}

0 comments on commit 074f79c

Please sign in to comment.