- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getStore (0.04 sec)
-
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/StartStopExtension.kt
/** Implements the policy specified by [StartStop]. */ internal class StartStopExtension : BeforeEachCallback, BeforeAllCallback { override fun beforeAll(context: ExtensionContext) { val store = context.getStore(Namespace.create(StartStop::class.java)) val staticFields = findAnnotatedFields( context.requiredTestClass, StartStop::class.java, ) { Modifier.isStatic(it.modifiers) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java
void testGetScore() { NetworkInterfaceInfo basic = new NetworkInterfaceInfo(testAddress, 1000); assertEquals(1000, basic.getScore()); // Base score is link speed NetworkInterfaceInfo fast = new NetworkInterfaceInfo(testAddress, 10000); assertTrue(fast.getScore() > basic.getScore()); } @Test void testCapabilitySettings() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
void testScoring() { channelInfo.setState(ChannelState.ESTABLISHED); int baseScore = channelInfo.getScore(); assertTrue(baseScore > 0); // Active channel should have lower score (busy penalty) channelInfo.setState(ChannelState.ACTIVE); int activeScore = channelInfo.getScore(); assertTrue(activeScore < baseScore); // Failed channel should have zero score
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java
private ChannelInfo selectWeightedRandom(Collection<ChannelInfo> channels) { // Calculate total weight int totalWeight = 0; for (ChannelInfo channel : channels) { totalWeight += channel.getScore(); } if (totalWeight == 0) { // All channels have zero score, pick randomly List<ChannelInfo> list = new ArrayList<>(channels);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
assertTrue(nic.isRssCapable()); assertFalse(nic.isRdmaCapable()); assertEquals(address, nic.getAddress()); // Test scoring int score = nic.getScore(); assertEquals(11000, score); // 10000 (link speed) + 1000 (RSS bonus) // Test encoding/decoding byte[] encoded = nic.encode(); assertNotNull(encoded);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0)