View Javadoc
1   package com.github.searls.jasmine.model;
2   
3   
4   public class JasmineResult {
5     private String details = "";
6   
7     public String getDescription() {
8       return last(getDetails().split("\n"));
9     }
10  
11    public boolean didPass() {
12      return getDescription().contains(" 0 failures");
13    }
14  
15    public String getDetails() {
16      return details;
17    }
18  
19    public void setDetails(String details) {
20      this.details = details;
21    }
22  
23    private <T> T last(T[] array) {
24      return array[array.length - 1];
25    }
26  
27  }