Home / CSE MCQs / EasyMock ::

CSE MCQs :: EasyMock

  1. cobertura-check.bat is run ________ the JUnit tests to show which classes do not have adequate test coverage.
  2. A.
    Before
    B.
    After
    C.
    Along with
    D.
    Before and after

  3. Which package assert belong to?
  4. A.
    java.unit
    B.
    Java.Net
    C.
    Java 8
    D.
    Java 9

  5. What happens if the assert doesn't evaluate to be true?
  6. A.
    Junit fails
    B.
    Junit works Fast
    C.
    Junit works temporarily
    D.
    None of the above

  7. The Cobertura command to run while reporting is ____________
  8. A.
    cobertura-report.bat
    B.
    cobertura-instrument.bat
    C.
    cobertura-check.bat
    D.
    cobertura-merge.bat

  9. The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each package during Cobetura coverage checking.
  10. A.
    datafile
    B.
    packagebranch
    C.
    line
    D.
    regex

  11. Name few Java Mocking Frameworks?
  12. A.
    Mockito
    B.
    PowerMock
    C.
    EasyMock
    D.
    JMock
    E.
    All of these

  13. The default value of the format parameter is ____________
  14. A.
    html
    B.
    jar
    C.
    java
    D.
    dat

  15. The ___________ parameter specifies the minimum acceptable branch coverage rate needed by each class during Cobetura coverage checking.
  16. A.
    datafile
    B.
    branch
    C.
    line
    D.
    regex

  17. The Cobertura command to run while checking coverage is ____________
  18. A.
    cobertura-report.bat
    B.
    cobertura-instrument.bat
    C.
    cobertura-check.bat
    D.
    cobertura-merge.bat

  19. ____________ parameter specifies the encoding used to read the source.
  20. A.
    datafile
    B.
    basedir
    C.
    encoding
    D.
    format