Best Mockito code snippet using org.mockito.internal.MockitoCore
Source:23ReturnsDeepStubs.java
...9import java.io.Serializable;1011import org.mockito.MockSettings;12import org.mockito.internal.InternalMockHandler;13import org.mockito.internal.MockitoCore;14import org.mockito.internal.creation.settings.CreationSettings;15import org.mockito.internal.stubbing.InvocationContainerImpl;16import org.mockito.internal.stubbing.StubbedInvocationMatcher;17import org.mockito.internal.util.MockUtil;18import org.mockito.internal.util.reflection.GenericMetadataSupport;19import org.mockito.invocation.InvocationOnMock;20import org.mockito.stubbing.Answer;2122/**23 * Returning deep stub implementation.24 *25 * Will return previously created mock if the invocation matches.26 *27 * <p>Supports nested generic information, with this answer you can write code like this :28 *29 * <pre class="code"><code class="java">30 * interface GenericsNest<K extends Comparable<K> & Cloneable> extends Map<K, Set<Number>> {}31 *32 * GenericsNest<?> mock = mock(GenericsNest.class, new ReturnsGenericDeepStubs());33 * Number number = mock.entrySet().iterator().next().getValue().iterator().next();34 * </code></pre>35 * </p>36 *37 * @see org.mockito.Mockito#RETURNS_DEEP_STUBS38 * @see org.mockito.Answers#RETURNS_DEEP_STUBS39 */40public class ReturnsDeepStubs implements Answer<Object>, Serializable {41 42 private static final long serialVersionUID = -7105341425736035847L;4344 private transient MockitoCore mockitoCore;45 private transient ReturnsEmptyValues delegate;4647 public Object answer(InvocationOnMock invocation) throws Throwable {48 GenericMetadataSupport returnTypeGenericMetadata =49 actualParameterizedType(invocation.getMock()).resolveGenericReturnType(invocation.getMethod());5051 Class<?> rawType = returnTypeGenericMetadata.rawType();52 instantiateMockitoCoreIfNeeded();53 instantiateDelegateIfNeeded();54 if (!mockitoCore.isTypeMockable(rawType)) {55 return delegate.returnValueFor(rawType);56 }5758 return getMock(invocation, returnTypeGenericMetadata);59 }6061 private synchronized void instantiateMockitoCoreIfNeeded() {62 if (mockitoCore == null) {63 mockitoCore = new MockitoCore();64 }65 }6667 private synchronized void instantiateDelegateIfNeeded() {68 if (delegate == null) {69 delegate = new ReturnsEmptyValues();70 }71 }7273 private Object getMock(InvocationOnMock invocation, GenericMetadataSupport returnTypeGenericMetadata) throws Throwable {74 InternalMockHandler<Object> handler = new MockUtil().getMockHandler(invocation.getMock());75 InvocationContainerImpl container = (InvocationContainerImpl) handler.getInvocationContainer();7677 // matches invocation for verification
...
Source:ReturnsDeepStubs.java
...5package org.mockito.internal.stubbing.defaultanswers;67import org.mockito.MockSettings;8import org.mockito.internal.InternalMockHandler;9import org.mockito.internal.MockitoCore;10import org.mockito.internal.creation.settings.CreationSettings;11import org.mockito.internal.stubbing.InvocationContainerImpl;12import org.mockito.internal.stubbing.StubbedInvocationMatcher;13import org.mockito.internal.util.MockUtil;14import org.mockito.internal.util.reflection.GenericMetadataSupport;15import org.mockito.invocation.InvocationOnMock;16import org.mockito.stubbing.Answer;1718import java.io.Serializable;1920import static org.mockito.Mockito.withSettings;2122/**23 * Returning deep stub implementation.24 *25 * Will return previously created mock if the invocation matches.26 *27 * <p>Supports nested generic information, with this answer you can write code like this :28 *29 * <pre class="code"><code class="java">30 * interface GenericsNest<K extends Comparable<K> & Cloneable> extends Map<K, Set<Number>> {}31 *32 * GenericsNest<?> mock = mock(GenericsNest.class, new ReturnsGenericDeepStubs());33 * Number number = mock.entrySet().iterator().next().getValue().iterator().next();34 * </code></pre>35 * </p>36 *37 * @see org.mockito.Mockito#RETURNS_DEEP_STUBS38 * @see org.mockito.Answers#RETURNS_DEEP_STUBS39 */40public class ReturnsDeepStubs implements Answer<Object>, Serializable {41 42 private static final long serialVersionUID = -7105341425736035847L;4344 private MockitoCore mockitoCore = new MockitoCore();45 private ReturnsEmptyValues delegate = new ReturnsEmptyValues();4647 public Object answer(InvocationOnMock invocation) throws Throwable {48 GenericMetadataSupport returnTypeGenericMetadata =49 actualParameterizedType(invocation.getMock()).resolveGenericReturnType(invocation.getMethod());5051 Class<?> rawType = returnTypeGenericMetadata.rawType();52 if (!mockitoCore.isTypeMockable(rawType)) {53 return delegate.returnValueFor(rawType);54 }5556 return getMock(invocation, returnTypeGenericMetadata);57 }58
...
Source:MockitoInternalUsageTest.java
...28 "import java.io.Serializable;",29 "class MockitoInternalUsagePositiveCases {",30 " public void newObject() {",31 " // BUG: Diagnostic contains:",32 " new org.mockito.internal.MockitoCore();",33 " // BUG: Diagnostic contains:",34 " new InternalConsumer(new org.mockito.internal.MockitoCore());",35 " }",36 " public void staticMethodInvocation() {",37 " // BUG: Diagnostic contains:",38 " org.mockito.internal.configuration.GlobalConfiguration.validate();",39 " }",40 " public void variableTypeDeclaration() {",41 " // BUG: Diagnostic contains:",42 " org.mockito.internal.stubbing.InvocationContainerImpl container = null;",43 " }",44 " // BUG: Diagnostic contains:",45 " class ExtendsClause extends org.mockito.internal.MockitoCore {}",46 " // BUG: Diagnostic contains:",47 " abstract class ImplementsClause implements"48 + " org.mockito.internal.junit.MockitoTestListener {}",49 " abstract class SecondImplementsClause",50 " // BUG: Diagnostic contains:",51 " implements Serializable, org.mockito.internal.junit.MockitoTestListener {}",52 " // BUG: Diagnostic contains:",53 " class ExtendsGeneric<T extends org.mockito.internal.stubbing.InvocationContainerImpl>"54 + " {}",55 " // BUG: Diagnostic contains:",56 " class SecondExtendsGeneric<R, T extends"57 + " org.mockito.internal.stubbing.InvocationContainerImpl> {}",58 " class FieldClause {",59 " // BUG: Diagnostic contains:",60 " org.mockito.internal.MockitoCore core;",61 " }",62 " class MethodArgumentClause {",63 " // BUG: Diagnostic contains:",64 " public void methodArgument(org.mockito.internal.MockitoCore core) {}",65 " }",66 " static class InternalConsumer {",67 " // BUG: Diagnostic contains:",68 " InternalConsumer(org.mockito.internal.MockitoCore core) {}",69 " }",70 "}")71 .doTest();72 }73 @Test74 public void testPositiveImportsCases() {75 compilationHelper76 .addSourceLines(77 "Test.java",78 "package foo;",79 "// BUG: Diagnostic contains:",80 "import org.mockito.internal.MockitoCore;",81 "// BUG: Diagnostic contains:",82 "import org.mockito.internal.stubbing.InvocationContainerImpl;",83 "// BUG: Diagnostic contains:",84 "import org.mockito.internal.*;",85 "class Test {}")86 .doTest();87 }88 @Test89 public void testNegativeCases() {90 compilationHelper91 .addSourceLines(92 "Test.java",93 "package org.mockito;",94 "import org.mockito.internal.MockitoCore;",95 "class Mockito {}")96 .doTest();97 }98}...
Source:InOrderImpl.java
...19 * Allows verifying in order. This class should not be exposed, hence default access.20 */21public class InOrderImpl implements InOrder, InOrderContext {22 23 private final MockitoCore mockitoCore = new MockitoCore();24 private final Reporter reporter = new Reporter();25 private final List<Object> mocksToBeVerifiedInOrder = new LinkedList<Object>();26 private final InOrderContext inOrderContext = new InOrderContextImpl();27 28 public List<Object> getMocksToBeVerifiedInOrder() {29 return mocksToBeVerifiedInOrder;30 }31 public InOrderImpl(List<Object> mocksToBeVerifiedInOrder) {32 this.mocksToBeVerifiedInOrder.addAll(mocksToBeVerifiedInOrder);33 }34 public <T> T verify(T mock) {35 return this.verify(mock, VerificationModeFactory.times(1));36 }37 ...
Source:ReturnsMocks.java
...5package org.mockito.internal.stubbing.defaultanswers;67import java.io.Serializable;89import org.mockito.internal.MockitoCore;10import org.mockito.internal.creation.MockSettingsImpl;11import org.mockito.internal.creation.jmock.ClassImposterizer;12import org.mockito.invocation.InvocationOnMock;13import org.mockito.stubbing.Answer;1415public class ReturnsMocks implements Answer<Object>, Serializable {16 17 private static final long serialVersionUID = -6755257986994634579L;18 private MockitoCore mockitoCore = new MockitoCore();19 private Answer<Object> delegate = new ReturnsMoreEmptyValues();20 21 public Object answer(InvocationOnMock invocation) throws Throwable {22 Object ret = delegate.answer(invocation);23 if (ret != null) {24 return ret;25 }26 27 return returnValueFor(invocation.getMethod().getReturnType());28 }2930 Object returnValueFor(Class<?> clazz) {31 if (!ClassImposterizer.INSTANCE.canImposterise(clazz)) {32 return null;
...
MockitoCore
Using AI Code Generation
1import org.mockito.internal.MockitoCore;2import org.mockito.invocation.Invocation;3import org.mockito.invocation.InvocationMatcher;4import org.mockito.invocation.Location;5import org.mockito.invocation.MockitoInvocationHandler;6import org.mockito.mock.MockName;7import org.mockito.mock.MockSettings;8import org.mockito.mock.MockCreationSettings;9import org.mockito.mock.MockNameImpl;10import org.mockito.mock.MockCreationSettingsImpl;11import org.mockito.mock.MockSettingsImpl;12import org.mockito.mock.MockCreationValidator;13import org.mockito.mock.MockHandlerFactory;14import org.mockito.mock.MockHandler;15import org.mockito.mock.SerializableMode;16import org.mockito.listeners.MockCreationListener;17import org.mockito.listeners.MethodInvocationReport;18import org.mockito.mock.MockName;19import org.mockito.mock.MockNameImpl;20import org.mockito.mock.MockCreationSettings;21import org.mockito.mock.MockCreationSettingsImpl;22import org.mockito.mock.MockSettings;23import org.mockito.mock.MockSettingsImpl;24import org.mockito.mock.MockCreationValidator;25import org.mockito.mock.MockHandler;26import org.mockito.mock.MockHandlerFactory;27import org.mockito.mock.SerializableMode;28import org.mockito.listeners.MockCreationListener;29import org.mockito.listeners.MethodInvocationReport;30import org.mockito.mock.MockName;31import org.mockito.mock.MockNameImpl;32import org.mockito.mock.MockCreationSettings;33import org.mockito.mock.MockCreationSettingsImpl;34import org.mockito.mock.MockSettings;35import org.mockito.mock.MockSettingsImpl;36import org.mockito.mock.MockCreationValidator;37import org.mockito.mock.MockHandler;38import org.mockito.mock.MockHandlerFactory;39import org.mockito.mock.SerializableMode;40import org.mockito.listeners.MockCreationListener;41import org.mockito.listeners.MethodInvocationReport;42import org.mockito.mock.MockName;43import org.mockito.mock.MockNameImpl;44import org.mockito.mock.MockCreationSettings;45import org.mockito.mock.MockCreationSettingsImpl;46import org.mockito.mock.MockSettings;47import org.mockito.mock.MockSettingsImpl;48import org.mockito.mock.MockCreationValidator;49import org.mockito.mock.MockHandler;50import org.mockito.mock.MockHandlerFactory;51import org.mockito.mock.SerializableMode;52import org.mockito.listeners.MockCreationListener;53import org.mockito.listeners.MethodInvocationReport;54import org.mockito.mock.MockName;55import org.mockito.mock.MockNameImpl;56import org.mockito.mock.MockCreationSettings;57import org.mockito.mock.MockCreationSettingsImpl;58import org.mockito.mock.MockSettings;59import org.mockito.mock.MockSettingsImpl;60import org.mockito.mock.MockCreationValidator;61import org.mockito.mock.MockHandler;62import org.mockito.mock.MockHandlerFactory;63import org.mockito.mock.SerializableMode;64import org.mockito.listeners.MockCreationListener;65import
MockitoCore
Using AI Code Generation
1import org.mockito.internal.MockitoCore;2import org.mockito.internal.invocation.InvocationMatcher;3import org.mockito.internal.invocation.Invocation;4import org.mockito.internal.invocation.InvocationsFinder;5import org.mockito.internal.progress.ThreadSafeMockingProgress;6import org.mockito.internal.progress.MockingProgress;7import org.mockito.internal.util.MockUtil;8import org.mockito.internal.invocation.Invocatio
MockitoCore
Using AI Code Generation
1import org.mockito.internal.MockitoCore;2import org.mockito.internal.creation.MockSettingsImpl;3import org.mockito.internal.invocation.InvocationMatcher;4import org.mockito.internal.invocation.InvocationMatcherImpl;5import org.mockito.internal.progress.MockingProgress;6import org.mockito.internal.progress.ThreadSafeMockingProgress;7import org.mockito.internal.stubbing.StubbedInvocationMatcher;8import org.mockito.internal.stubbing.answers.Returns;9import org.mockito.invocation.Invocation;10import org.mockito.invocation.Location;11import org.mockito.mock.MockCreationSettings;12import org.mockito.stubbing.Answer;13import org.mockito.stubbing.Stubbing;14import org.mockito.stubbing.VoidMethodStubbable;15import org.mockito.stubbing.VoidMethodStubbableImpl;16public class MockitoCoreTest {17 public static void main(String[] args) {18 MockitoCoreTest test = new MockitoCoreTest();19 test.testMockitoCore();20 }21 private void testMockitoCore() {22 MockitoCore mockitoCore = new MockitoCore();23 MockingProgress mockingProgress = new ThreadSafeMockingProgress();24 MockCreationSettings settings = new MockSettingsImpl();25 MockSettingsImpl settingsImpl = new MockSettingsImpl();26 InvocationMatcherImpl invocationMatcherImpl = new InvocationMatcherImpl();27 InvocationMatcher invocationMatcher = new InvocationMatcher();28 StubbedInvocationMatcher stubbedInvocationMatcher = new StubbedInvocationMatcher();29 Returns returns = new Returns();30 Invocation invocation = new Invocation() {31 public Object invoke(Object o, Object[] objects) throws Throwable {32 return null;33 }34 public Location getLocation() {35 return null;36 }37 public String toString() {38 return null;39 }40 public String getMethod() {41 return null;42 }43 public Object[] getArguments() {44 return new Object[0];45 }46 public Object getMock() {47 return null;48 }49 public int getSequenceNumber() {50 return 0;51 }
MockitoCore
Using AI Code Generation
1import org.mockito.internal.MockitoCore;2import org.mockito.internal.invocation.InvocationBuilder;3import org.mockito.internal.invocation.InvocationMatcher;4import org.mockito.internal.invocation.InvocationBuilder;5import org.mockito.internal.invocation.InvocationMatcher;6import org.mockito.internal.invocation.InvocationMatcher;7import org.mockito.invocation.Invocation;8public class MockitoCoreExample {9 public static void main(String args[]) {10 MockitoCore mockitoCore = new MockitoCore();11 InvocationBuilder invocationBuilder = new InvocationBuilder();12 InvocationMatcher invocationMatcher = new InvocationMatcher();13 Invocation invocation = invocationMatcher;14 mockitoCore.invocation(invocation);15 mockitoCore.invocationMatcher(invocationMatcher);16 mockitoCore.invocationBuilder(invocationBuilder);17 }18}
MockitoCore
Using AI Code Generation
1import org.mockito.internal.MockitoCore;2import org.mockito.internal.creation.jmock.ClassImposterizer;3import org.mockito.internal.stubbing.answers.Returns;4import org.mockito.internal.util.MockUtil;5import org.mockito.invocation.Invocation;6import org.mockito.invocation.MockHandler;7import org.mockito.mock.MockCreationSettings;8import org.mockito.stubbing.Answer;9import org.mockito.stubbing.Stubber;10import org.mockito.stubbing.Stubber
MockitoCore
Using AI Code Generation
1package mockito;2import org.mockito.internal.MockitoCore;3import org.mockito.internal.invocation.InvocationBuilder;4import org.mockito.internal.invocation.InvocationMatcher;5import org.mockito.internal.invocation.InvocationsFinder;6import org.mockito.internal.invocation.MatchersBinder;7import org.mockito.internal.progress.MockingProgress;8import org.mockito.internal.progress.ThreadSafeMockingProgress;9import org.mockito.internal.stubbing.InvocationContainerImpl;10import org.mockito.internal.stubbing.StubbedInvocationMatcher;11import org.mockito.invocation.Invocation;12import org.mockito.invocation.InvocationOnMock;13import org.mockito.invocation.Location;14import org.mockito.invocation.MatchableInvocation;15import org.mockito.listeners.InvocationListener;16import org.mockito.listeners.MethodInvocationReport;17import org.mockito.listeners.StubbingLookupEvent;18import org.mockito.listeners.StubbingLookupListener;19import org.mockito.mock.MockCreationSettings;20import org.mockito.mock.MockName;21import org.mockito.plugins.MockMaker;22import org.mockito.plugins.StackTraceCleanerProvider;23import org.mockito.stubbing.Stubbing;24import java.lang.reflect.Method;25import java.util.List;26public class MockitoCoreExample {27 public static void main(String[] args) {28 MockitoCore mockitoCore = new MockitoCore();29 InvocationBuilder invocationBuilder = new InvocationBuilder();30 InvocationMatcher invocationMatcher = new InvocationMatcher();31 InvocationsFinder invocationsFinder = new InvocationsFinder();32 MatchersBinder matchersBinder = new MatchersBinder();33 InvocationContainerImpl invocationContainer = new InvocationContainerImpl();34 StubbedInvocationMatcher stubbedInvocationMatcher = new StubbedInvocationMatcher();35 MockCreationSettings mockCreationSettings = new MockCreationSettings() {36 public MockName getMockName() {37 return null;38 }
MockitoCore
Using AI Code Generation
1import org.mockito.internal.MockitoCore;2import org.mockito.internal.matchers.Any;3import org.mockito.invocation.Invocation;4import org.mockito.invocation.InvocationMatcher;5import org.mockito.mock.MockingDetails;6import org.mockito.mock.MockingDetailsImpl;7import org.mockito.mock.MockingProgress;8import org.mockito.mock.MockingProgressImpl;9import org.mockito.stubbing.Stubbing;10import org.mockito.stubbing.StubbingImpl;11import java.util.List;12import java.util.ArrayList;13import java.util.Collections;14import java.util.LinkedList;15import java.util.List;16import java.util.Set;17import java.util.HashSet;18import java.util.Iterator;19import java.util.Arrays;20import java.util.regex.Pattern;21import java.util.regex.Matcher;22import java.util.concurrent.CopyOnWriteArrayList;23import java.util.concurrent.atomic.AtomicInteger;24import java.util.concurrent.atomic.AtomicLong;25import java.io.Serializable;26import java.io.ObjectOutputStream;27import java.io.ObjectInputStream;28import java.io.IOException;29import java.io.ObjectStreamException;30import java.lang.reflect.Method;31import java.lang.reflect.InvocationTargetException;32import java.lang.reflect.Modifier;33import java.lang.reflect.Constructor;34import java.lang.reflect.Field;35import java.lang.reflect.Proxy;36import java.lang.reflect.Type;37import java.lang.reflect.TypeVariable;38import java.lang.reflect.GenericDeclaration;39import java.lang.reflect.GenericArrayType;40import java.lang.reflect.ParameterizedType;41import java.lang.reflect.WildcardType;42import java.lang.reflect.InvocationHandler;43import java.util.concurrent.Callable;44import java.util.concurrent.Future;45import java.util.concurrent.ExecutorService;46import java.util.concurrent.Executors;47import java.util.concurrent.TimeUnit;48import java.util.concurrent.TimeoutException;49import java.util.concurrent.ExecutionException;50import java.util.concurrent.atomic.AtomicReference;51import java.util.concurrent.atomic.AtomicInteger;52import java.util.concurrent.atomic.AtomicLong;53import java.util.concurrent.atomic.AtomicBoolean;54import java.util.concurrent.atomic.AtomicIntegerArray;55import java.util.concurrent.atomic.AtomicLongArray;56import java.util.concurrent.atomic.AtomicReferenceArray;57import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;58import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;59import java.util.concurrent.atomic.AtomicLongFieldUpdater;60import java.util.concurrent.locks.Lock;61import java.util.concurrent.locks.ReadWriteLock;62import java.util.concurrent.locks.ReentrantLock;63import java.util.concurrent.locks.ReentrantReadWriteLock;64import java.util.concurrent.locks.Condition;65import java.util.concurrent.locks.ReentrantLock;66import java.util.concurrent.locks.ReentrantReadWriteLock;67import java.util.concurrent.locks.Re
MockitoCore
Using AI Code Generation
1package org.mockito.internal;2import org.mockito.internal.creation.MockSettingsImpl;3import org.mockito.internal.creation.MockSettingsImpl.MockSettingsImplBuilder;4import org.mockito.internal.creation.bytebuddy.MockBytecodeGenerator;5import org.mockito.internal.creation.bytebuddy.MockFactory;6import org.mockito.internal.creation.bytebuddy.MockFeatures;7import org.mockito.internal.creation.bytebuddy.MockFeatures.MockFeaturesBuilder;8import org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator;9import org.mockito.internal.creation.bytebuddy.TypeCachingMockFactory;10import org.mockito.internal.creation.bytebuddy.TypeCachingMockBytecodeGenerator;11import org.mockito.internal.creation.bytebuddy.TypeCachingMockFeatures;12import org.mockito.internal.creation.bytebuddy.TypeCachingMockFeatures.TypeCachingMockFeaturesBuilder;13import org.mockito.internal.creation.bytebuddy.TypeCachingMockSettings;14import org.mockito.internal.creation.bytebuddy.TypeCachingMockSettings.TypeCachingMockSettingsBuilder;15import org.mockito.internal.creation.bytebuddy.TypeCachingMockSettings.TypeCachingMockSettingsImplBuilder;16import org.mockito.internal.creation.bytebuddy.TypeCachingMockingProgress;17import org.mockito.internal.creation.bytebuddy.TypeCachingMockingProgress.TypeCachingMockingProgressBuilder;18import org.mockito.internal.creation.bytebuddy.TypeCachingSettingsFactory;19import org.mockito.internal.creation.bytebuddy.TypeCachingSettingsFactory.TypeCachingSettingsFactoryBuilder;20import org.mockito.internal.creation.bytebuddy.TypeCachingSettingsFactory.TypeCachingSettingsFactoryImplBuilder;21import org.mockito.internal.creation.bytebuddy.TypeCachingSettingsFactory.TypeCachingSettingsFactoryMockFeaturesBuilder;22import org.mockito.internal.creation.bytebuddy.TypeCachingSettingsFactory.TypeCachingSettingsFactoryMockSettingsBuilder;23import org.mockito.internal.creation.bytebuddy.TypeCachingSettingsFactory.TypeCachingSettingsFactoryMockingProgressBuilder;24import org.mockito.internal.creation.instance.InstantiatorProvider;25import org.mockito.internal.creation.instance.InstantiatorProviderImpl;26import org.mockito.internal.creation.instance.InstantiatorProviderImpl.InstantiatorProviderImplBuilder;27import org.mockito.internal.creation.instance.InstantiatorProviderImpl.InstantiatorProviderImplInstantiatorProviderBuilder;28import org.mockito.internal.creation.instance.InstantiatorProviderImpl.InstantiatorProviderImplMockingProgressBuilder;29import org.mockito.internal.creation.instance.InstantiatorProviderImpl.InstantiatorProviderImplSettingsFactoryBuilder;30import org.mockito.internal.creation.instance.InstantiatorProviderImpl.InstantiatorProviderImplTypeCachingInstantiatorProviderBuilder;31import org
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!