Skip to content

Commit

Permalink
Default participant config test
Browse files Browse the repository at this point in the history
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
  • Loading branch information
jepemi committed Nov 16, 2023
1 parent 12a3618 commit 26eb0c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ set(TEST_SOURCES
)

set(TEST_LIST
default_configuration
creation_trivial
ddspipe_all_creation_builtin_topic
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <ddspipe_participants/participant/auxiliar/EchoParticipant.hpp>
#include <ddspipe_participants/participant/rtps/DiscoveryServerParticipant.hpp>
#include <ddspipe_participants/participant/rtps/SimpleParticipant.hpp>
#include <ddspipe_participants/participant/rtps/CommonParticipant.hpp>
#include <ddspipe_participants/participant/rtps/InitialPeersParticipant.hpp>
#include <ddspipe_participants/participant/dds/XmlParticipant.hpp>
#include <ddspipe_participants/testing/entities/mock_entities.hpp>
Expand All @@ -39,6 +40,21 @@ constexpr const unsigned int N_THREADS = 2;

} // test

/**
* Test to check default participant configuration values.
*/
TEST(ParticipantsCreationgTest, default_configuration)
{
// Common configuration
{
participants::ParticipantConfiguration conf;
EXPECT_EQ(conf.app_id, "UNKNOWN_APP");
EXPECT_EQ(conf.app_metadata, "");
EXPECT_TRUE(conf.id.empty());
EXPECT_FALSE(conf.is_repeater);
}
}

/**
* Test to create a participant of each kind and check it does not fail.
*
Expand Down

0 comments on commit 26eb0c3

Please sign in to comment.