- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 244 for mock (0.16 sec)
-
cni/pkg/ipset/nldeps_mock.go
// See the License for the specific language governing permissions and // limitations under the License. package ipset import ( "net/netip" "github.com/stretchr/testify/mock" ) type MockedIpsetDeps struct { mock.Mock } func FakeNLDeps() *MockedIpsetDeps { return &MockedIpsetDeps{} } func (m *MockedIpsetDeps) ipsetIPPortCreate(name string) error { args := m.Called(name) return args.Error(0)
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 1.8K bytes - Viewed (0) -
istioctl/pkg/cli/mock_client.go
Xiaopeng Han <******@****.***> 1709887099 +0800
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Mar 08 08:38:19 GMT 2024 - 2.1K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import ( "context" "fmt" "testing" "time" "github.com/stretchr/testify/mock" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "istio.io/istio/cni/pkg/util" "istio.io/istio/pkg/config/constants" "istio.io/istio/pkg/kube"
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Feb 08 01:03:24 GMT 2024 - 15.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessEnv.java
/** * Get the value for the key 'mail.send.mock'. <br> * The value is, e.g. true <br> * comment: Does it send mock mail? (true: no send actually, logging only) * @return The value of found property. (NotNull: if not found, exception but basically no way) */ String getMailSendMock(); /** * Is the property for the key 'mail.send.mock' true? <br> * The value is, e.g. true <br>
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 9.9K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/internal/impl/DefaultSessionTest.java
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; public class DefaultSessionTest { @Test void testRootDirectoryWithNull() { RepositorySystemSession rss = new DefaultRepositorySystemSession(h -> false);
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Thu Jan 25 13:58:24 GMT 2024 - 2.6K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java
import org.codehaus.plexus.component.repository.exception.ComponentLookupException; import static org.apache.maven.lifecycle.internal.stub.LifecycleExecutionPlanCalculatorStub.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** */ public class DefaultLifecyclesStub { public static DefaultLifecycles createDefaultLifecycles() throws ComponentLookupException {
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 3.2K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/internal/transformation/AbstractRepositoryTestCase.java
rsession.setLocalRepositoryManager(system.newLocalRepositoryManager(rsession, localRepo)); rsession.setTransferListener(Mockito.mock(TransferListener.class)); rsession.setRepositoryListener(Mockito.mock(RepositoryListener.class)); DefaultMavenExecutionRequest request = new DefaultMavenExecutionRequest();
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 3.3K bytes - Viewed (0) -
maven-api-impl/src/test/java/org/apache/maven/internal/impl/DefaultSettingsBuilderFactoryTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import static org.junit.jupiter.api.Assertions.assertNotNull; /** */ @ExtendWith(MockitoExtension.class) class DefaultSettingsBuilderFactoryTest { @Mock Session session; @BeforeEach void setup() {
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 2.9K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
import org.codehaus.plexus.testing.PlexusTest; import org.eclipse.aether.DefaultRepositorySystemSession; import org.junit.jupiter.api.BeforeEach; import static org.junit.jupiter.api.Assertions.fail; import static org.mockito.Mockito.mock; /** */ @PlexusTest public abstract class AbstractMavenProjectTestCase { protected ProjectBuilder projectBuilder; @Inject protected RepositorySystem repositorySystem; @Inject
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 6.2K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy
TestDomainObject value1 = new TestDomainObject('a') TestDomainObject value2 = new TestDomainObject('a') repository.put('class1', value1) repository.put('class2', value2) Closure cl = Mock() when: repository.each(cl) then: 1 * cl.call(['class1', value1] as Object[]) 1 * cl.call(['class2', value2] as Object[]) 0 * cl._ }
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Sat Apr 06 02:21:33 GMT 2024 - 3.8K bytes - Viewed (0)