Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a test in example_component_test.hpp testing the sendMsg method #29

Open
LuxMiranda opened this issue Jan 11, 2017 · 2 comments
Open
Assignees
Labels

Comments

@LuxMiranda
Copy link

LuxMiranda commented Jan 11, 2017

  • Work out of the tutorial branch
  • Initialize a component in the test and call the sendMsg method
  • Understand and utilize the file's test fixture
  • The test should pass if bool sent is true
@LuxMiranda LuxMiranda changed the title Mock the SPA component and write a test for the sendMsg method Write a test in example_component_test.hpp testing the sendMsg method Feb 1, 2017
@CommanderScotty
Copy link

Hey I'm having a bit of trouble figuring out how to initialize the component. I can't seem to find a constructor to call for one. Could someone tell me what file its in / how to use it?

@LuxMiranda
Copy link
Author

LuxMiranda commented Feb 24, 2017

Yeah man! @CommanderScotty It's this file right here. In that file there's a bunch of commented code that shows you exactly how to initialize the example component. You can copy/paste it right into the test fixture's SetUp function for the most part :)

@PhilipNelson5 PhilipNelson5 removed their assignment Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants