1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! Test fixtures for persistence and serialization testing
//!
//! This module provides reusable test entities and builders for testing
//! JSON serialization, deserialization, and file persistence operations.
use ;
/// Test entity for JSON serialization tests
///
/// This is a simple entity used across multiple tests to verify
/// serialization, deserialization, and persistence operations.
///
/// # Examples
///
/// ```rust
/// use torrust_tracker_deployer_lib::testing::fixtures::TestEntity;
///
/// // Create with default values
/// let entity = TestEntity::default();
/// assert_eq!(entity.id, "test-id");
/// assert_eq!(entity.value, 42);
///
/// // Create with custom values
/// let entity = TestEntity::new("custom-id", 100);
/// assert_eq!(entity.id, "custom-id");
/// assert_eq!(entity.value, 100);
/// ```