@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } DerivedCube other = (DerivedCube) obj; if (!this.getParent().equals(other.getParent())) { return false; } if (this.getMeasureNames() == null) { if (other.getMeasureNames() != null) { return false; } } else if (!this.getMeasureNames().equals(other.getMeasureNames())) { return false; } if (this.getDimAttributeNames() == null) { if (other.getDimAttributeNames() != null) { return false; } } else if (!this.getDimAttributeNames().equals(other.getDimAttributeNames())) { return false; } return true; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } DerivedCube other = (DerivedCube) obj; if (!this.getParent().equals(other.getParent())) { return false; } if (this.getMeasureNames() == null) { if (other.getMeasureNames() != null) { return false; } } else if (!this.getMeasureNames().equals(other.getMeasureNames())) { return false; } if (this.getDimAttributeNames() == null) { if (other.getDimAttributeNames() != null) { return false; } } else if (!this.getDimAttributeNames().equals(other.getDimAttributeNames())) { return false; } return true; }
assertTrue(client.isCube(cubeTbl)); Cube cube2 = new Cube(cubeTbl); assertTrue(cube.equals(cube2)); assertFalse(cube2.isDerivedCube()); assertTrue(cube2.getTimedDimensions().isEmpty());
assertTrue(client.isCube(cubeTbl)); Cube cube2 = new Cube(cubeTbl); assertTrue(cube.equals(cube2)); assertFalse(cube2.isDerivedCube()); assertTrue(cube2.getTimedDimensions().isEmpty()); assertTrue(client.isCube(cubeTbl)); cube2 = new Cube(cubeTbl); assertTrue(cubeWithProps.equals(cube2)); assertFalse(cube2.isDerivedCube()); assertFalse(cubeWithProps.getTimedDimensions().isEmpty());