Git Product home page Git Product logo

whitebox-junit's Introduction

White Box testing with Junit

This is a simple white-box testing using junit tools.

Disclaimer: This testing is for educational purposes and not designated for production. The code and test cases may contain bugs.

Technologies

  • Java SE
  • Junit
  • Maven

Prerequisites

Setup

I assume that the IDE being used is IntelliJ Idea.

This java project is built using Maven. Read more about Maven here.
I already included the necessary configurations for this testing project inside pom.xml.

  • Clone the repository - git clone https://github.com/YU88John/whitebox-junit.git

  • Install necessary junit packages - mvn clean install

  • Compile the source file - javac Utils.java

    Note: The JDK used for Maven is JDK 17. If any error comes up, ensure you have the same JDK version.

    • Check your JDK version - java -version
    • If it's different, install JDK 17 - sudo apt-get update and sudo apt install openjdk-17-jdk
    • (or) Not recommended but you can change pom.xml - <maven.compiler.source>17</maven.compiler.source> replace 17 with your JDK version.

  • Right click on UtilsTest.java > Run 'UtilsTest'

    • testSumFile() is written to be failed intentionally.

whitebox-junit's People

Contributors

yu88john avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.