@Test public void testGetHeaderReturnsNullWhenAllDefault() { AmqpHeader header = new AmqpHeader(); assertNull("Header should not have been created as values are defaulted", header.getHeader()); }
public Header getHeader() { Header result = null; if (!isDefault()) { result = new Header(); if(Boolean.TRUE.equals(durable)) { result.setDurable(Boolean.TRUE); } else { result.setDurable(Boolean.FALSE); } result.setPriority(priority); result.setFirstAcquirer(firstAcquirer); result.setTtl(timeToLive); result.setDeliveryCount(deliveryCount); } return result; }
AmqpHeader { public Header getHeader() { Header result = null; if (!isDefault()) { result = new Header(); if(Boolean.TRUE.equals(durable)) { result.setDurable(Boolean.TRUE); } else { result.setDurable(Boolean.FALSE); } result.setPriority(priority); result.setFirstAcquirer(firstAcquirer); result.setTtl(timeToLive); result.setDeliveryCount(deliveryCount); } return result; } }
AmqpHeader { public Header getHeader() { Header result = null; if (!isDefault()) { result = new Header(); if(Boolean.TRUE.equals(durable)) { result.setDurable(Boolean.TRUE); } else { result.setDurable(Boolean.FALSE); } result.setPriority(priority); result.setFirstAcquirer(firstAcquirer); result.setTtl(timeToLive); result.setDeliveryCount(deliveryCount); } return result; } AmqpHeader();  AmqpHeader(AmqpHeader header);  AmqpHeader(Header header); }
AmqpHeader { public Header getHeader() { Header result = null; if (!isDefault()) { result = new Header(); if(Boolean.TRUE.equals(durable)) { result.setDurable(Boolean.TRUE); } else { result.setDurable(Boolean.FALSE); } result.setPriority(priority); result.setFirstAcquirer(firstAcquirer); result.setTtl(timeToLive); result.setDeliveryCount(deliveryCount); } return result; } AmqpHeader();  AmqpHeader(AmqpHeader header);  AmqpHeader(Header header); void setHeader(Header header); void setHeader(AmqpHeader header); Header getHeader(); boolean isDefault(); boolean nonDefaultDurable(); boolean nonDefaultPriority(); boolean nonDefaultTimeToLive(); boolean nonDefaultFirstAcquirer(); boolean nonDefaultDeliveryCount(); boolean isDurable(); void setDurable(Boolean value); int getPriority(); void setPriority(UnsignedByte value); void setPriority(int priority); long getTimeToLive(); void setTimeToLive(UnsignedInteger value); void setTimeToLive(long timeToLive); boolean isFirstAcquirer(); void setFirstAcquirer(Boolean value); int getDeliveryCount(); void setDeliveryCount(UnsignedInteger value); void setDeliveryCount(int count); @Override String toString(); }
AmqpHeader { public Header getHeader() { Header result = null; if (!isDefault()) { result = new Header(); if(Boolean.TRUE.equals(durable)) { result.setDurable(Boolean.TRUE); } else { result.setDurable(Boolean.FALSE); } result.setPriority(priority); result.setFirstAcquirer(firstAcquirer); result.setTtl(timeToLive); result.setDeliveryCount(deliveryCount); } return result; } AmqpHeader();  AmqpHeader(AmqpHeader header);  AmqpHeader(Header header); void setHeader(Header header); void setHeader(AmqpHeader header); Header getHeader(); boolean isDefault(); boolean nonDefaultDurable(); boolean nonDefaultPriority(); boolean nonDefaultTimeToLive(); boolean nonDefaultFirstAcquirer(); boolean nonDefaultDeliveryCount(); boolean isDurable(); void setDurable(Boolean value); int getPriority(); void setPriority(UnsignedByte value); void setPriority(int priority); long getTimeToLive(); void setTimeToLive(UnsignedInteger value); void setTimeToLive(long timeToLive); boolean isFirstAcquirer(); void setFirstAcquirer(Boolean value); int getDeliveryCount(); void setDeliveryCount(UnsignedInteger value); void setDeliveryCount(int count); @Override String toString();  }