()
| 50 | } |
| 51 | |
| 52 | @Test |
| 53 | public void toBuilder() { |
| 54 | Attributes attrs = Attributes.newBuilder() |
| 55 | .set(YOLO_KEY, "To be?") |
| 56 | .build() |
| 57 | .toBuilder() |
| 58 | .set(YOLO_KEY, "Or not to be?") |
| 59 | .set(Attributes.Key.create("yolo"), "I'm not a duplicate") |
| 60 | .build(); |
| 61 | assertThat(attrs.get(YOLO_KEY)).isEqualTo("Or not to be?"); |
| 62 | assertThat(attrs.keysForTest()).hasSize(2); |
| 63 | } |
| 64 | |
| 65 | @Test |
| 66 | public void empty() { |
no test coverage detected