Respuesta :
The tested character is modified as given below. See the definition of tested character below.
What is characterization testing?
Michael Feathers created the phrase "characterization testing."
A characterization test (also known as Golden Master Testing) in computer programming.
It is a method of describing (characterizing) the actual behavior of an existing piece of software and thereby protecting legacy code against unwanted modifications through automated testing.
What is the modified characterInfo class?
Run on java, the modified characterInfo class is given as follows:
//import packages
import java.util.Scanner;
//Java class
public class InputCharacterInfo {
//entry point of the program , main method
public static void main(String[] args) {
//creating object of Scanner class
Scanner sc=new Scanner(System.in);
//asking user to enter character
System.out.print("Enter a character : ");
//reading character
char aChar=sc.next().charAt(0);
System.out.println("The character is "+aChar);
if(Character.isUpperCase(aChar))
System.out.println(aChar+" is uppercase");
else
System.out.println(aChar+" is not uppercase");
if(Character.isLowerCase(aChar))
System.out.println(aChar+" is lowercase");
else
System.out.println(aChar+" is not lowercase");
aChar=Character.toLowerCase(aChar);
System.out.println("After toLowerCase(), aChar is "+aChar);
aChar=Character.toUpperCase(aChar);
System.out.println("After toUpperCase(), aChar is "+aChar);
}
}
Learn more about characterization testing in programming at;
https://brainly.com/question/13142406
#SPJ1
