11/25/2023 0 Comments Grep github![]() ![]() Assert that all the 3 consumers received the message: assertThat( executing( grep( constantExpression( "User Marco id:12345 received"), on( consumersProfiles))). Assert that the distribution application distributed the message to all the 3 consumers: assertThat( executing( grep( constantExpression( "User Marco id:12345 sent to Consumer"), on( distributionProfile))). Assert that the distribution application received the message: assertThat( executing( grep( constantExpression( "User Marco id:12345 received"), on( distributionProfile))). Profile guiProfile = create the Profile for your guiServer Profile distributionProfile = create the Profile for your distributionServer List consumersProfiles = create the Profiles for your 3 consumers //Assert that the GUI has sent the create message to the distribution server: assertThat( executing( grep( constantExpression( "12345 sent to distribution server"), on( guiProfile))). Let's say you need to test that after starting your network of servers, no errors or exceptions will be found in the log: You can use Grep4j to make your acceptance/integration tests more fluent and easy. processing the single grep result for each profile for println( "Total Execution Time : " + results. ![]() println( "Total lines found : " + results. Obtaining the global result GrepResults results = grep( constantExpression( "Expression_to_grep"), on( remoteProfile, localProfile)) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |