Task: Control Flow Oriented Coverage Test Procedures
In the so-called branch coverage test, the test case quantity for a Program P be compiled so that each edge of the control flow graph of P (see, for example, Fig. 1: You already know an equivalent representation as a program flowchart) at least once, so each condition / branch at least once to true and (possibly in another test case) is evaluated too wrong at least once.
To capture what parts of the code during the execution of the test cases. Some tools instrument the code similarly as in the method newSpielfeld the class SchiffVersenken. The
calls made to Log.log (...) log the execution of the instruction blocks shown in Fig. 1 by equally numbered circles being represented.
Implement a simplified test case class based on Junit SchiffVersenkenZweigueberdeckungsTest. The test cases have to be included represented by non-static methods without arguments, which are additionally marked with the given annotation test (this Annotation is greatly simplified and does not support parameters such as timeout or exceptions!).
After running all test cases, you should have a complete branch coverage (C1 = 100%) all methods of "SUT"(System under test). Additionally, check on every call of all non-void Methods immediately return their value using the default Assert.assertEquals method.
Tip: A good test case is minimalistic! They should be in each test method accordingly create at most one instance of the "SUT" ship sinking, then, if necessary, into the desired one
Bring state and finally call the method to be tested.
Important notes: Do not use classes, methods or annotations from the official JUnit package, otherwise your submission will be awarded 0 points, because it is not alone translatable.
Instead, use the annotations / classes provided by the AuD team. After processing this task you should exclude them from the class path of future tasks, otherwise you may not be able to perform any given public test cases!
The core members of the team mainly include Silicon Valley engineers, BAT front-line engineers, top 5 master and doctoral students in China, and are proficient in German and English! Our main business scope is to do programming assignments, course design and so on.
Our field of direction: window programming, numerical algorithm, AI, artificial intelligence, financial statistics, econometric analysis, big data, network programming, WEB programming, communication programming, game programming, multimedia linux, plug-in programming program, API, image processing, embedded/MCU database programming, console process and thread, network security, assembly language hardware Programming software design engineering standards and regulations. The ghostwriting and ghostwriting programming languages or tools include but are not limited to the following:
C/C++/C# ghostwriting
Java ghostwriting
IT ghostwriting
Python ghostwriting
Tutored programming assignments
Matlab ghostwriting
Haskell ghostwriting
Processing ghostwriting
Building a Linux environment
Rust ghostwriting
Data Structure Assginment
MIPS ghostwriting http://www.6daixie.com/contents/9/1274.html
Machine Learning homework ghostwriting
Oracle/SQL/PostgreSQL/Pig database ghostwriting/doing/coaching
web development, website development, website work
ASP.NET website development
Finance Insurance Statistics Statistics, Regression, Iteration
Prolog ghostwriting
Computer Computational method
Because professional, so trustworthy. If necessary, please add QQ: 99515681 or email: [email protected]
WeChat: codinghelp