Because you are not initializing any thing in your constructor so it takes default value for all variable in you class. So you can change your constructor like :
private String author;
private String title;
private int quantity;
private double costPerBook;
private String orderDate;
private double weight;
private char type; //R,O,F,U,N
public BookOrder(String author, String title, int quanitity, double costPerBook, String orderDate, double weight, char type)
{
this.author = author;
this.title =title;
this.quanitity =quanitity;
// others also
}
solved BookOrder class isn’t rendering results in Test