input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
getSplits ( ) { "<AssertPlaceHolder>" ; } getSplits ( ) { org . junit . Assert . assertNull ( format . getSplits ( ) ) ; }
org . junit . Assert . assertNull ( format . getSplits ( ) )
testConstructorWithEmptyParameters ( ) { final fr . gouv . vitam . logbook . common . parameters . LogbookOperationParameters lop = new fr . gouv . vitam . logbook . common . parameters . LogbookOperationParameters ( new java . util . HashMap ( ) ) ; "<AssertPlaceHolder>" ; } getMapParameters ( ) { throw new java . lan...
org . junit . Assert . assertEquals ( true , lop . getMapParameters ( ) . isEmpty ( ) )
envRepoVariableInNdkSearchOrderIsUsed ( ) { java . nio . file . Path envDir = createTmpNdkVersions ( com . facebook . buck . android . toolchain . ndk . impl . AndroidNdkResolver . NDK_POST_R11_VERSION_FILENAME , "ndk-dir-r17c1" , "Pkg.Desc<sp>=<sp>Android<sp>NDK\nPkg.Revision<sp>=<sp>17.2.4988734.1" ) [ 0 ] ; com . fa...
org . junit . Assert . assertEquals ( envDir , resolver . getNdkOrThrow ( ) )
testRemove ( ) { com . liferay . layout . page . template . model . LayoutPageTemplateCollection newLayoutPageTemplateCollection = addLayoutPageTemplateCollection ( ) ; _persistence . remove ( newLayoutPageTemplateCollection ) ; com . liferay . layout . page . template . model . LayoutPageTemplateCollection existingLay...
org . junit . Assert . assertNull ( existingLayoutPageTemplateCollection )
testInt ( ) { java . lang . Class < com . j256 . ormlite . field . types . IntTypeTest . LocalInt > clazz = com . j256 . ormlite . field . types . IntTypeTest . LocalInt . class ; com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . types . IntTypeTest . LocalInt , java . lang . Object > dao = createDao ( ...
org . junit . Assert . assertEquals ( 1 , dao . create ( foo ) )
testOnPwChange ( ) { action . onPasswordChange ( getTestUser ( ) , "newPw" , root , NamePathMapper . DEFAULT ) ; "<AssertPlaceHolder>" ; } hasPendingChanges ( ) { return base . hasPendingChanges ( ) ; }
org . junit . Assert . assertFalse ( root . hasPendingChanges ( ) )
testVersionNumberImplIntIntInt ( ) { org . verapdf . SemanticVersionNumber vNum = org . verapdf . VersionNumberImpl . fromString ( org . verapdf . SemanticVersionTest . v1_0_0 ) ; org . verapdf . SemanticVersionNumber intsNum = org . verapdf . VersionNumberImpl . fromInts ( 1 , 0 , 0 ) ; "<AssertPlaceHolder>" ; } fromI...
org . junit . Assert . assertEquals ( vNum , intsNum )
testSelectSimple ( ) { org . apache . ibatis . session . SqlSession sqlSession = org . apache . ibatis . submitted . dynsql . DynSqlTest . sqlSessionFactory . openSession ( ) ; try { java . util . List < java . lang . Integer > ids = new java . util . ArrayList < java . lang . Integer > ( ) ; ids . add ( 1 ) ; ids . ad...
org . junit . Assert . assertTrue ( ( ( answer . size ( ) ) == 3 ) )
test_longArray_withType ( ) { long [ ] data = new long [ ] { 234 , 0 , - 1 } ; com . alibaba . dubbo . common . serialize . ObjectOutput objectOutput = serialization . serialize ( url , byteArrayOutputStream ) ; objectOutput . writeObject ( data ) ; objectOutput . flushBuffer ( ) ; java . io . ByteArrayInputStream byte...
org . junit . Assert . assertArrayEquals ( data , ( ( long [ ] ) ( deserialize . readObject ( long [ ] . class ) ) ) )
runTest ( ) { org . apache . uima . resource . metadata . TypeSystemDescription global = org . apache . uima . fit . factory . TypeSystemDescriptionFactory . createTypeSystemDescription ( ) ; org . apache . uima . resource . metadata . TypeSystemDescription local ; if ( new java . io . File ( referenceFolder , "typesys...
org . junit . Assert . assertEquals ( referenceTsv , actualTsv )
testNullPayloadFiltering ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 0 , output . size ( ) )
getLoggingEventsOnlyReturnsEventsLoggedInThisThread ( ) { java . lang . Thread t = new java . lang . Thread ( new java . lang . Runnable ( ) { @ uk . org . lidalia . slf4jtest . Override public void run ( ) { uk . org . lidalia . slf4jtest . TestLoggerFactory . getTestLogger ( "name1" ) . info ( "hello" ) ; } } ) ; t ....
org . junit . Assert . assertThat ( uk . org . lidalia . slf4jtest . TestLoggerFactory . getLoggingEvents ( ) , org . hamcrest . CoreMatchers . is ( empty ( ) ) )
muleParserManagesPipeCharacter ( ) { org . mule . runtime . core . privileged . util . TemplateParser tp = org . mule . runtime . core . privileged . util . TemplateParser . createMuleStyleParser ( ) ; final java . lang . String expectedResult = "mel:evaluator:<sp>'Hello|Hi'" ; java . lang . String result = tp . parse ...
org . junit . Assert . assertEquals ( expectedResult , result )
testShouldFireOnChangeEventWhenSettingAnElementsValue ( ) { driver . get ( pages . javascriptPage ) ; driver . findElement ( org . openqa . selenium . By . id ( "change" ) ) . sendKeys ( "foo" ) ; java . lang . String result = driver . findElement ( org . openqa . selenium . By . id ( "result" ) ) . getText ( ) ; "<Ass...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( "change" ) )
testBuscarFuncionarioPorEmailECpf ( ) { com . kazale . pontointeligente . api . entities . Funcionario funcionario = this . funcionarioRepository . findByCpfOrEmail ( com . kazale . pontointeligente . api . repositories . FuncionarioRepositoryTest . CPF , com . kazale . pontointeligente . api . repositories . Funcionar...
org . junit . Assert . assertNotNull ( funcionario )
captureUserDefinedClassImplementingExternalAPI ( mockit . ActionListener ) { boolean notCaptured = new mockit . CapturingImplementationsTest . MyActionListener ( ) . doSomething ( ) ; "<AssertPlaceHolder>" ; } doSomething ( ) { new integrationTests . ClassWithNestedClasses . NestedClass . DeeplyNestedClass ( ) . print ...
org . junit . Assert . assertFalse ( notCaptured )
testSelected ( ) { mmarquee . automation . AutomationElement element = org . mockito . Mockito . mock ( mmarquee . automation . AutomationElement . class ) ; mmarquee . automation . pattern . Value value = org . mockito . Mockito . mock ( mmarquee . automation . pattern . Value . class ) ; mmarquee . automation . patte...
org . junit . Assert . assertTrue ( cell . getValue ( ) . equals ( "CELL-01" ) )
testDirAfterFile ( ) { disableSilentOperation ( VcsConfiguration . StandardConfirmation . ADD ) ; final com . intellij . openapi . vfs . VirtualFile dir = createDirInCommand ( myWorkingCopyDir , "dir" ) ; final com . intellij . openapi . vfs . VirtualFile file = createFileInCommand ( dir , "a.txt" , "content" ) ; final...
org . junit . Assert . assertEquals ( 0 , errors . size ( ) )
testNoIteratorUnclosed ( ) { final org . apache . sis . feature . builder . FeatureTypeBuilder builder = new org . apache . sis . feature . builder . FeatureTypeBuilder ( ) ; final org . geotoolkit . data . memory . MemoryFeatureStore store = new org . geotoolkit . data . memory . MemoryFeatureStore ( ) ; java . util ....
org . junit . Assert . assertEquals ( 0 , names . size ( ) )
whenNotFound ( ) { org . multiverse . api . StmUtils . atomic ( new org . multiverse . api . callables . TxnVoidCallable ( ) { @ org . multiverse . collections . Override public void call ( org . multiverse . api . Txn tx ) throws org . multiverse . collections . Exception { map . put ( "1" , "a" ) ; map . put ( "2" , ...
org . junit . Assert . assertNull ( result )
testGetLabelID ( ) { java . lang . String label = "R3" ; org . openscience . smsd . helper . LabelContainer instance = new org . openscience . smsd . helper . LabelContainer ( ) ; instance . addLabel ( label ) ; java . lang . Integer expectedValue = 2 ; "<AssertPlaceHolder>" ; } getLabelID ( java . lang . String ) { ad...
org . junit . Assert . assertEquals ( expectedValue , instance . getLabelID ( "R3" ) )
testInsertDataToNamedGraph ( ) { java . lang . String queryStr = ( ( "PREFIX<sp>ns:<sp><http://example.org/ns#>\n" + "INSERT<sp>DATA<sp>{<sp>GRAPH<sp>" ) + ( org . apache . clerezza . rdf . core . sparql . SparqlPreParserTest . TEST_GRAPH . toString ( ) ) ) + "<sp>{<sp><http://example/book1><sp>ns:price<sp>42<sp>}<sp>}...
org . junit . Assert . assertTrue ( referredGraphs . toArray ( ) [ 0 ] . equals ( org . apache . clerezza . rdf . core . sparql . SparqlPreParserTest . TEST_GRAPH ) )
manageModificationVDiskDeletion_VSERVER_RETRIEVEGUEST_MailForCompletion ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_RETRIEVEGUEST ; org . oscm . app . iaas . data . FlowState newState = null ; parameters . put ( PropertyHandler . MAIL_FOR_COMPLETION ...
org . junit . Assert . assertEquals ( FlowState . FINISHED , newState )
hashCodeSelf ( ) { final com . lightboxtechnologies . nsrl . MfgData osd = new com . lightboxtechnologies . nsrl . MfgData ( com . lightboxtechnologies . nsrl . MfgDataTest . code , com . lightboxtechnologies . nsrl . MfgDataTest . name ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { return sha1 . hashCode ( ) ; }
org . junit . Assert . assertTrue ( ( ( osd . hashCode ( ) ) == ( osd . hashCode ( ) ) ) )
children ( ) { java . util . Map < java . lang . String , org . apache . servicecomb . serviceregistry . discovery . DiscoveryTreeNode > children = new java . util . HashMap ( ) ; node . children ( children ) ; "<AssertPlaceHolder>" ; } children ( ) { return children ; }
org . junit . Assert . assertSame ( children , node . children ( ) )
testIncompatibleLogicalAndConvertedTypes ( ) { org . apache . parquet . format . converter . ParquetMetadataConverter parquetMetadataConverter = new org . apache . parquet . format . converter . ParquetMetadataConverter ( ) ; org . apache . parquet . schema . MessageType schema = org . apache . parquet . schema . Types...
org . junit . Assert . assertEquals ( expected , actual )
testBase64ConstantEncode ( ) { org . apache . hadoop . hive . accumulo . predicate . PrimitiveComparisonFilter filter = new org . apache . hadoop . hive . accumulo . predicate . PrimitiveComparisonFilter ( ) ; java . util . Map < java . lang . String , java . lang . String > options = new java . util . HashMap < java ....
org . junit . Assert . assertEquals ( constant , new java . lang . String ( filter . getConstant ( options ) ) )
dataTypeRequired1 ( ) { org . diirt . support . ca . JCAChannelHandler handler = new org . diirt . support . ca . JCAChannelHandler ( "test" , dataSource ) ; when ( dataSource . isRtypValueOnly ( ) ) . thenReturn ( Boolean . TRUE ) ; when ( channel . getFieldType ( ) ) . thenReturn ( DBR_String . TYPE ) ; when ( channe...
org . junit . Assert . assertThat ( type , equalTo ( DBR_TIME_String . TYPE ) )
testCanBeConvertedToACapabilitiesObject ( ) { org . openqa . selenium . Capabilities options = org . openqa . selenium . server . browserlaunchers . BrowserOptions . newBrowserOptions ( ) ; options = org . openqa . selenium . browserlaunchers . Proxies . setAvoidProxy ( options , true ) ; options = org . openqa . selen...
org . junit . Assert . assertEquals ( 3 , options . asMap ( ) . size ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . dynamic . data . mapping . model . DDMStructureLayout missingDDMStructureLayout = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { ...
org . junit . Assert . assertNull ( missingDDMStructureLayout )
writesCorrectSizeFor274ByteLengthBackReference ( ) { org . apache . commons . compress . compressors . lz4 . BlockLZ4CompressorOutputStream . Pair p = new org . apache . commons . compress . compressors . lz4 . BlockLZ4CompressorOutputStream . Pair ( ) ; p . setBackReference ( new org . apache . commons . compress . co...
org . junit . Assert . assertArrayEquals ( new byte [ ] { 15 , 1 , 0 , ( ( byte ) ( 255 ) ) , 0 } , bos . toByteArray ( ) )
shouldDoFilterForNoLoanOfferBO ( ) { org . mifos . accounts . loan . struts . action . QuestionGroupFilterForLoan questionGroupFilterForLoan = new org . mifos . accounts . loan . struts . action . QuestionGroupFilterForLoan ( ) ; java . util . List < org . mifos . platform . questionnaire . service . QuestionGroupDetai...
org . junit . Assert . assertThat ( filteredQuestionGroupDetails , org . hamcrest . CoreMatchers . is ( questionGroupDetails ) )
testFindByIds ( ) { java . util . List < org . kaaproject . kaa . server . common . dao . model . sql . ApplicationEventFamilyMap > applicationEventFamilyMaps = generateApplicationEventFamilyMap ( null , null , null , 2 , true ) ; java . util . List < java . lang . String > ids = new java . util . ArrayList ( ) ; ids ....
org . junit . Assert . assertEquals ( applicationEventFamilyMaps , found )
testTaskActivityName ( ) { java . lang . String name = "A<sp>Task" ; task . setName ( name ) ; org . camunda . bpm . engine . impl . cmmn . model . CmmnActivity activity = handler . handleElement ( planItem , context ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( name , activity . getName ( ) )
testIsDebugEnabled ( ) { org . slf4j . Logger mock = createStrictMock ( org . slf4j . Logger . class ) ; expect ( mock . isDebugEnabled ( ) ) . andReturn ( true ) ; replay ( mock ) ; org . jboss . netty . logging . InternalLogger logger = new org . jboss . netty . logging . Slf4JLogger ( mock ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertTrue ( logger . isDebugEnabled ( ) )
updateTorrentSourceThrowsExceptionIfSourceWithOriginalNameExists ( ) { java . lang . String originalName = "TEST_SOURCE" ; nu . ted . generated . TorrentSource existingSource1 = new nu . ted . generated . TorrentSource ( ( ( short ) ( 0 ) ) , "RSS" , originalName , "LOC" ) ; nu . ted . generated . TorrentSource existin...
org . junit . Assert . assertEquals ( expectedException , e . getMessage ( ) )
transform_inetrtr_with_trailing_dot ( ) { final net . ripe . db . whois . common . rpsl . RpslObject rpslObject = net . ripe . db . whois . common . rpsl . RpslObject . parse ( ( "" + ( "inet-rtr:<sp>test.ripe.net.\n" + "alias:<sp>alias.ripe.net" ) ) ) ; final net . ripe . db . whois . common . rpsl . RpslObject result...
org . junit . Assert . assertThat ( result . getValueForAttribute ( AttributeType . INET_RTR ) . toString ( ) , org . hamcrest . Matchers . is ( "test.ripe.net" ) )
testUpdateWithNoChangeDetectionUpdateUnchanged ( ) { java . lang . String name = "testUpdateUnchanged" ; org . hl7 . fhir . instance . model . api . IIdType id1 ; org . hl7 . fhir . instance . model . api . IIdType id2 ; { ca . uhn . fhir . jpa . dao . r4 . Patient patient = new ca . uhn . fhir . jpa . dao . r4 . Patie...
org . junit . Assert . assertEquals ( id1 . getValue ( ) , id2 . getValue ( ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . LayoutSetBranch . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjec...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
test03 ( ) { java . lang . String outFile = ( com . itextpdf . kernel . pdf . ParentTreeTest . destinationFolder ) + "parentTreeTest03.pdf" ; java . lang . String cmpFile = ( com . itextpdf . kernel . pdf . ParentTreeTest . sourceFolder ) + "cmp_parentTreeTest03.pdf" ; com . itextpdf . kernel . pdf . PdfDocument docume...
org . junit . Assert . assertTrue ( checkParentTree ( outFile , cmpFile ) )
test_getPathInWorkspace_windows_ok ( ) { java . lang . String workspace = "C:\\path\\to\\spring-petclinic" ; java . lang . String absolutePath = "C:\\path\\to\\spring-petclinic\\pom.xml" ; java . lang . String actual = org . jenkinsci . plugins . pipeline . maven . util . XmlUtils . getPathInWorkspace ( absolutePath , ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
testAssignMigrations ( ) { servers . clear ( ) ; servers . put ( new org . apache . accumulo . server . master . state . TServerInstance ( org . apache . accumulo . core . util . HostAndPort . fromParts ( "127.0.0.1" , 1234 ) , "a" ) , new org . apache . accumulo . server . master . balancer . ChaoticLoadBalancerTest ....
org . junit . Assert . assertEquals ( assignments . size ( ) , metadataTable . size ( ) )
listFrameworks ( ) { streamflow . model . Framework framework1 = new streamflow . model . Framework ( ) ; framework1 . setId ( "framework-1" ) ; framework1 . setName ( "framework-first" ) ; framework1 . setLabel ( "First<sp>Framework" ) ; framework1 . setCount ( 7 ) ; framework1 . setEnabled ( true ) ; streamflow . mod...
org . junit . Assert . assertEquals ( "Response<sp>clusters<sp>should<sp>be<sp>equal<sp>to<sp>the<sp>mocked<sp>clusters" , mockedFrameworks , responseFrameworks )
testSize ( ) { org . infinispan . commons . util . RangeSet rs = new org . infinispan . commons . util . RangeSet ( 4 ) ; "<AssertPlaceHolder>" ; } size ( ) { record ( "size" ) ; return store . size ( ) ; }
org . junit . Assert . assertEquals ( 4 , rs . size ( ) )
selectedOrgIdChanged_Empty ( ) { model . setSelectedOrgId ( "" ) ; ctrl . selectedOrgIdChanged ( ) ; "<AssertPlaceHolder>" ; verify ( sessionBean ) . setSelectedCustomerId ( eq ( ( ( java . lang . String ) ( null ) ) ) ) ; } getServices ( ) { return services ; }
org . junit . Assert . assertEquals ( 0 , model . getServices ( ) . size ( ) )
cascadeFromGenericMethodWhereConcreteReturnTypeIsGivenByClassParameter ( mockit . CascadingWithGenericsTest$Foo ) { mockit . CascadingWithGenericsTest . SubBar subBar = foo . genericMethodWithBoundedTypeVariableAndClassParameter ( mockit . CascadingWithGenericsTest . SubBar . class ) ; "<AssertPlaceHolder>" ; } generic...
org . junit . Assert . assertNotNull ( subBar )
testOnCraftNotEnderChest ( ) { org . bukkit . inventory . Recipe recipe = mock ( org . bukkit . inventory . Recipe . class ) ; org . bukkit . inventory . ItemStack item = mock ( org . bukkit . inventory . ItemStack . class ) ; when ( item . getType ( ) ) . thenReturn ( Material . STONE ) ; when ( recipe . getResult ( )...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
remove_2arg_Existing_Different ( ) { java . lang . Long key = java . lang . System . currentTimeMillis ( ) ; java . lang . String value = "value" + key ; cache . put ( key , value ) ; "<AssertPlaceHolder>" ; } remove ( K , V ) { return new Semantic . UpdateExisting < K , V , java . lang . Boolean > ( ) { @ java . lang ...
org . junit . Assert . assertFalse ( cache . remove ( key , ( value + 1 ) ) )
testPropagateWhenAddingUserToRequiredUserGroups ( ) { com . liferay . portal . security . membership . policy . test . util . MembershipPolicyTestUtil . addUser ( null , null , null , addRequiredUserGroups ( ) ) ; "<AssertPlaceHolder>" ; } isPropagateMembership ( ) { return com . liferay . portal . security . membershi...
org . junit . Assert . assertTrue ( isPropagateMembership ( ) )
borkowskiAstronomicalBase ( ) { int year = net . time4j . calendar . PersianCalendar . of ( 1 , 1 , 1 ) . getInt ( CommonElements . RELATED_GREGORIAN_YEAR ) ; net . time4j . tz . ZonalOffset offset = net . time4j . tz . ZonalOffset . ofTotalSeconds ( ( ( int ) ( 3.425 * 3600 ) ) ) ; while ( year <= 3000 ) { net . time4...
org . junit . Assert . assertThat ( cal , org . hamcrest . CoreMatchers . is ( tsp . getCalendarDate ( ) ) )
manageDeletionProcess_VSERVER_DELETION_REQUESTED_Running ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_DELETION_REQUESTED ; org . oscm . app . iaas . data . FlowState newState = null ; paramHandler . getIaasContext ( ) . setVSystemStatus ( "NORMAL" ) ;...
org . junit . Assert . assertNull ( newState )
getSelectableMarketplaces_Operator ( ) { doReturn ( Boolean . TRUE ) . when ( umpb ) . isLoggedInAndPlatformOperator ( ) ; java . util . List < javax . faces . model . SelectItem > list = umpb . getSelectableMarketplaces ( ) ; verify ( msmock , times ( 1 ) ) . getMarketplacesForOperator ( ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( 2 , list . size ( ) )
testEncodingMultipleCookiesLax ( ) { java . util . List < java . lang . String > result = new java . util . ArrayList < java . lang . String > ( ) ; result . add ( "cookie1=value1" ) ; result . add ( "cookie2=value2" ) ; result . add ( "cookie1=value3" ) ; io . netty . handler . codec . http . cookie . Cookie cookie1 =...
org . junit . Assert . assertEquals ( result , encodedCookies )
testFillArcWithZeroWidth ( ) { gc . fillArc ( 1 , 2 , 0 , 4 , 5 , 6 ) ; org . eclipse . swt . internal . graphics . GCAdapter adapter = org . eclipse . swt . graphics . ControlGC_Test . getGCAdapter ( gc ) ; org . eclipse . swt . internal . graphics . GCOperation [ ] gcOperations = adapter . getGCOperations ( ) ; "<Ass...
org . junit . Assert . assertEquals ( 0 , gcOperations . length )
shouldNotLoadAProjectIfItIsntARustProjectDirectory ( ) { org . netbeans . api . project . Project project = factory . loadProject ( projectFolder , projectState ) ; "<AssertPlaceHolder>" ; } loadProject ( org . openide . filesystems . FileObject , org . netbeans . spi . project . ProjectState ) { return isProject ( pro...
org . junit . Assert . assertNull ( project )
shouldMakeJAXRSClassesAvailableViaHTTP ( ) { org . neo4j . doc . server . helpers . CommunityServerBuilder builder = org . neo4j . doc . server . helpers . CommunityServerBuilder . server ( ) ; server = org . neo4j . doc . server . helpers . ServerHelper . createNonPersistentServer ( builder ) ; org . neo4j . doc . ser...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testGetBackground ( ) { System . out . println ( "getBackground" ) ; mudmap2 . backend . legend . Legend instance = new mudmap2 . backend . legend . Legend ( layer , Legend . Orientation . HORIZONTAL , 500 ) ; "<AssertPlaceHolder>" ; } getBackground ( ) { return backgroundColor ; }
org . junit . Assert . assertNotNull ( instance . getBackground ( ) )
whenLockHeldCheckReturnsTrue ( ) { com . mongodb . client . MongoDatabase db = new com . github . fakemongo . Fongo ( com . github . mongobee . dao . LockDaoTest . TEST_SERVER ) . getDatabase ( com . github . mongobee . dao . LockDaoTest . DB_NAME ) ; com . github . mongobee . dao . LockDao dao = new com . github . mon...
org . junit . Assert . assertTrue ( dao . isLockHeld ( db ) )
proceedFromFakeMethodWithoutParameters ( ) { new mockit . MockUp < mockit . FakeInvocationProceedTest . ClassToBeFaked > ( ) { @ mockit . Mock boolean methodToBeMocked ( mockit . Invocation inv ) { return inv . proceed ( ) ; } } ; "<AssertPlaceHolder>" ; } methodToBeFaked ( ) { return true ; }
org . junit . Assert . assertTrue ( new mockit . FakeInvocationProceedTest . ClassToBeFaked ( ) . methodToBeFaked ( ) )
testSerialization ( ) { org . jfree . chart . renderer . xy . XYErrorRenderer r1 = new org . jfree . chart . renderer . xy . XYErrorRenderer ( ) ; r1 . setErrorPaint ( new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . RED , 3.0F , 4.0F , java . awt . Color . WHITE ) ) ; java . io . ByteArrayOutputStre...
org . junit . Assert . assertEquals ( r1 , r2 )
transformWithException ( ) { io . trane . future . Transformer < java . lang . Integer , io . trane . future . Future < java . lang . Integer > > t = new io . trane . future . Transformer < java . lang . Integer , io . trane . future . Future < java . lang . Integer > > ( ) { @ io . trane . future . Override public io ...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , value )
testDefinePermissionToAllowViewDataRecordCollection ( ) { com . liferay . portal . kernel . model . Role role1 = com . liferay . portal . kernel . test . util . RoleTestUtil . addRole ( RoleConstants . TYPE_REGULAR ) ; com . liferay . portal . kernel . model . User user1 = com . liferay . portal . kernel . test . util ...
org . junit . Assert . assertEquals ( deDataRecordCollectionExpected , deDataRecordCollection )
testGetAllContentFromInputStream ( ) { final byte [ ] bytes = "theContent\nVeryGreatContent" . getBytes ( ) ; final java . io . ByteArrayInputStream inputStream = new java . io . ByteArrayInputStream ( bytes ) ; final byte [ ] read = org . bonitasoft . engine . io . IOUtil . getAllContentFrom ( inputStream ) ; inputStr...
org . junit . Assert . assertArrayEquals ( bytes , read )
testSetIpv4RemRouterId ( ) { java . util . List list = new java . util . ArrayList ( ) ; list . add ( org . onlab . packet . Ip4Address . valueOf ( 1 ) ) ; ospfLinkTed . setIpv4RemRouterId ( list ) ; "<AssertPlaceHolder>" ; } ipv4RemRouterId ( ) { return ipv4RemRouterId ; }
org . junit . Assert . assertThat ( ospfLinkTed . ipv4RemRouterId ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testHashCodeDeterministic ( ) { hw3 . hash . ComplexOomage so = hw3 . hash . ComplexOomage . randomComplexOomage ( ) ; int hashCode = so . hashCode ( ) ; for ( int i = 0 ; i < 100 ; i += 1 ) { "<AssertPlaceHolder>" ; } } hashCode ( ) { int hashCode = 1 ; for ( int i = 0 ; i < ( length ( ) ) ; i += 1 ) { hashCode *= 31 ...
org . junit . Assert . assertEquals ( hashCode , so . hashCode ( ) )
checkPluginCreation ( ) { info . smart_tools . smartactors . feature_loading_system . interfaces . ibootstrap . IBootstrap < info . smart_tools . smartactors . feature_loading_system . interfaces . ibootstrap_item . IBootstrapItem < java . lang . String > > bootstrap = mock ( info . smart_tools . smartactors . feature_...
org . junit . Assert . assertNotNull ( plugin )
extractIpv6PrefixTest ( ) { int ipv6Address ; ipv6Address = org . opendaylight . openflowplugin . openflow . md . core . sal . convertor . common . IpConversionUtil . extractIpv6Prefix ( new org . opendaylight . yang . gen . v1 . urn . ietf . params . xml . ns . yang . ietf . inet . types . rev130715 . Ipv6Prefix ( "1:...
org . junit . Assert . assertEquals ( ipv6Address , 16 )
unlockConnectorRejectedVerifyReturnValue ( ) { when ( chargePointService . unlockConnector ( any ( io . motown . ocpp . v15 . soap . chargepoint . UnlockConnectorRequest . class ) , eq ( io . motown . ocpp . v15 . soap . chargepoint . CHARGING_STATION_ID . getId ( ) ) ) ) . thenReturn ( getUnlockConnectorResponse ( Unl...
org . junit . Assert . assertEquals ( RequestResult . FAILURE , requestResult )
testCompareWithSnapshotTag ( ) { org . codehaus . gmavenplus . model . Version v1 = org . codehaus . gmavenplus . model . Version . parseFromString ( "1.0-SNAPSHOT" ) ; org . codehaus . gmavenplus . model . Version v2 = org . codehaus . gmavenplus . model . Version . parseFromString ( "1.0" ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( ( ( v1 . compareTo ( v2 ) ) < 0 ) )
testNestedBuilder ( ) { new com . googlecode . jatl . Html ( writer ) { { bind ( "\t</body>\n" 0 , "foo" ) ; bind ( "coolName" , "\t</body>\n" 3 ) ; html ( ) ; body ( ) ; h1 ( ) . text ( "${coolName}" ) . end ( ) ; new com . googlecode . jatl . HtmlBuilderTest . MyMarkup ( this ) { { div ( ) . text ( "this<sp>${coolNam...
org . junit . Assert . assertEquals ( expected , result )
matchPattern ( ) { ch . rasc . wampspring . method . DestinationPatternsMessageCondition condition = ch . rasc . wampspring . method . DestinationPatternsMessageConditionTest . condition ( "/foo/*" ) ; ch . rasc . wampspring . method . DestinationPatternsMessageCondition match = condition . getMatchingCondition ( ch . ...
org . junit . Assert . assertNotNull ( match )
testShallowFiltering ( ) { org . nuxeo . ecm . core . api . DocumentModel doc = session . createDocumentModel ( "/" , "empty" , "Document" ) ; doc = session . createDocument ( doc ) ; ShallowFilterPostCommitEventListener . handledCount = 0 ; session . save ( ) ; nextTransaction ( ) ; "<AssertPlaceHolder>" ; } nextTrans...
org . junit . Assert . assertEquals ( 1 , ShallowFilterPostCommitEventListener . handledCount )
testGetPrivateKeyEntryFromP12InputStreamWithMultipleKeys ( ) { try ( final java . io . InputStream p12InputStream = com . turo . pushy . apns . P12UtilTest . class . getResourceAsStream ( com . turo . pushy . apns . P12UtilTest . MULTIPLE_KEY_KEYSTORE_FILENAME ) ) { final java . security . KeyStore . PrivateKeyEntry pr...
org . junit . Assert . assertNotNull ( privateKeyEntry )
testGetNodeSemphoresOfSecondaryIndexKey ( ) { insertKeys ( getHive ( ) ) ; org . hivedb . meta . directory . DbDirectory d = getDirectory ( ) ; org . hivedb . meta . directory . Collection < org . hivedb . meta . directory . KeySemaphore > skeys = d . getKeySemaphoresOfSecondaryIndexKey ( nameIndex , secondaryKeyString...
org . junit . Assert . assertEquals ( 1 , skeys . size ( ) )
testNoSubgraph ( ) { edu . ucla . sspace . graph . Graph < edu . ucla . sspace . graph . Edge > g = new edu . ucla . sspace . graph . SparseUndirectedGraph ( ) ; for ( int i = 1 ; i < 9 ; i ++ ) { g . add ( i ) ; } edu . ucla . sspace . graph . SamplingSubgraphIterator < edu . ucla . sspace . graph . Edge > iter = new ...
org . junit . Assert . assertEquals ( 0 , numSubgraphs )
should_remove_sync_task_if_create_session_failure_on_callback ( ) { java . lang . ClassLoader classLoader = com . flow . platform . api . test . TestBase . class . getClassLoader ( ) ; java . net . URL resource = classLoader . getResource ( "hello.git" ) ; java . io . File path = new java . io . File ( resource . getFi...
org . junit . Assert . assertNull ( syncService . getSyncTask ( agent ) )
testWithTEVoid ( ) { org . apache . catalina . startup . Tomcat tomcat = getTomcatInstance ( ) ; java . io . File root = new java . io . File ( "test/webapp" ) ; tomcat . addWebapp ( "" , root . getAbsolutePath ( ) ) ; tomcat . start ( ) ; java . lang . String request = ( ( ( ( ( ( ( ( ( ( "POST<sp>/echo-params.jsp<sp>...
org . junit . Assert . assertTrue ( client . isResponse501 ( ) )
testProcessTemplate8 ( ) { java . util . Map < java . lang . String , java . lang . Object > context = new java . util . HashMap ( ) ; context . put ( com . liferay . portal . template . velocity . internal . VelocityTemplateTest . _TEST_KEY , com . liferay . portal . template . velocity . internal . VelocityTemplateTe...
org . junit . Assert . assertEquals ( com . liferay . portal . template . velocity . internal . VelocityTemplateTest . _TEST_VALUE , result )
testHierarchySuperClassFieldQuery ( ) { io . yawp . repository . models . hierarchy . ObjectSubClass child = new io . yawp . repository . models . hierarchy . ObjectSubClass ( "xpto" ) ; yawp . save ( child ) ; io . yawp . repository . models . hierarchy . ObjectSubClass retrievedObject = yawp ( io . yawp . repository ...
org . junit . Assert . assertEquals ( "xpto<sp>+<sp>superclass<sp>hook" , retrievedObject . getName ( ) )
testSubsystemSymbolicNameHeaderEquality ( ) { java . lang . String headerStr1 = "org.acme.billing;category=banking" ; java . lang . String headerStr2 = "org.acme.billing;category=banking" ; org . apache . aries . subsystem . core . archive . SymbolicNameHeader header1 = new org . apache . aries . subsystem . core . arc...
org . junit . Assert . assertEquals ( header1 , header2 )
testCase52 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase52 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , branch_conditions . size ( ) )
saveRejectData ( ) { org . patientview . radar . model . Transplant . RejectData rejectData = new org . patientview . radar . model . Transplant . RejectData ( ) ; rejectData . setTransplantId ( new java . lang . Long ( 15 ) ) ; transplantDao . saveRejectData ( rejectData ) ; "<AssertPlaceHolder>" ; org . patientview ....
org . junit . Assert . assertNotNull ( rejectData . getId ( ) )
findObject ( ) { com . appleframework . data . hbase . myrecord . MyRecord myRecord = mockSlim ( 0 ) ; com . appleframework . data . hbase . client . RowKey rowKey = myRecord . rowKey ( ) ; simpleHbaseClient . putObject ( rowKey , myRecord ) ; com . appleframework . data . hbase . myrecord . MyRecord resultRecord = sim...
org . junit . Assert . assertTrue ( myRecord . equals ( resultRecord ) )
testForVarCharArrayOneElement ( ) { java . lang . String [ ] strArr = new java . lang . String [ 1 ] ; strArr [ 0 ] = "ereref" ; org . apache . phoenix . schema . types . PhoenixArray arr = org . apache . phoenix . schema . types . PArrayDataType . instantiatePhoenixArray ( PVarchar . INSTANCE , strArr ) ; byte [ ] byt...
org . junit . Assert . assertEquals ( arr , resultArr )
selectAllMenuItemShouldHaveCorrectKeyAsAccelerator ( ) { final javax . swing . KeyStroke ctrlA = javax . swing . KeyStroke . getKeyStroke ( KeyEvent . VK_A , getMenuKey ( ) ) ; final javax . swing . KeyStroke accelerator = selectAllMenuItem . getAccelerator ( ) ; "<AssertPlaceHolder>" ; } getMenuKey ( ) { if ( net . us...
org . junit . Assert . assertSame ( ctrlA , accelerator )
given_ObjectBWithDefaultConstructor_when_CreatingSource_then_GettingInterceptorResult ( ) { com . javax0 . djcproxy . ProxyFactoryTest . B a = new com . javax0 . djcproxy . ProxyFactoryTest . B ( ) ; com . javax0 . djcproxy . ProxyFactory < com . javax0 . djcproxy . ProxyFactoryTest . B > factory = new com . javax0 . d...
org . junit . Assert . assertEquals ( 0 , s . method ( ) )
testGetEveryByteSequencially ( ) { java . lang . String expected = "<?xml<sp>version=\"1.0\"<sp>encoding=\"UTF-8\"?><profiles/>" ; int size = ( ( int ) ( zipResource . size ( ) ) ) ; byte [ ] bin = new byte [ size ] ; int i ; for ( i = 0 ; i < size ; i ++ ) { bin [ i ] = zipResource . getByte ( i ) ; } "<AssertPlaceHol...
org . junit . Assert . assertEquals ( expected , new java . lang . String ( bin ) )
testProcessBusinessObjectDataRegistrationNotificationEventSyncAssertNoopWhenAllDisabled ( ) { org . finra . herd . model . api . xml . JobDefinition jobDefinition = jobDefinitionServiceTestHelper . createJobDefinition ( org . finra . herd . service . ACTIVITI_XML_LOG_VARIABLES_NO_REGEX_WITH_CLASSPATH ) ; java . util . ...
org . junit . Assert . assertEquals ( 0 , notificationActions . size ( ) )
testRemoveValidatorUsernameNonExist ( ) { "<AssertPlaceHolder>" ; } removeValidator ( com . tech . configurations . tools . ValidationScopes , int ) { if ( i == 0 ) { return false ; } switch ( scope ) { case ROOM_NAME : if ( ( com . tech . models . dtos . chatroom . ChatroomUpdateDTO . ROOM_NAME_VALIDATORS . size ( ) )...
org . junit . Assert . assertFalse ( com . tech . models . dtos . chatroom . ChatroomUpdateDTO . removeValidator ( ValidationScopes . ROOM_ACCESS_METHOD , 20 ) )
testConvertISOTZ ( ) { java . lang . String source = "2018-05-09T17:34:55.000-07:00" ; com . box . l10n . mojito . rest . textunit . StringToDateTimeConverter instance = new com . box . l10n . mojito . rest . textunit . StringToDateTimeConverter ( ) ; org . joda . time . DateTime expResult = new org . joda . time . Dat...
org . junit . Assert . assertEquals ( expResult , result )
deveObterIcmsSN201ComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS icms = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS ( ) ; final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpo...
org . junit . Assert . assertEquals ( icmsSetado , icms . getIcmssn201 ( ) )
testScalarAdd ( ) { org . hipparchus . complex . Complex x = new org . hipparchus . complex . Complex ( 3.0 , 4.0 ) ; double yDouble = 2.0 ; org . hipparchus . complex . Complex yComplex = new org . hipparchus . complex . Complex ( yDouble ) ; "<AssertPlaceHolder>" ; } add ( org . hipparchus . complex . Quaternion ) { ...
org . junit . Assert . assertEquals ( x . add ( yComplex ) , x . add ( yDouble ) )
testSharedBufferExtractOrder ( ) { org . apache . flink . cep . nfa . sharedbuffer . SharedBuffer < org . apache . flink . cep . Event > sharedBuffer = org . apache . flink . cep . utils . TestSharedBuffer . createTestBuffer ( org . apache . flink . cep . Event . createTypeSerializer ( ) ) ; int numberEvents = 5 ; org ...
org . junit . Assert . assertEquals ( expectedOrder , resultOrder )
testRewritePomForFlatMultiModule ( ) { java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createReactorProjects ( "rewrite-for-release/pom-with-parent-flat" , "pom-with-parent-flat" , "root-project" ) ; org . apache . maven . shared . release . config . ReleaseDescriptorBuilder build...
org . junit . Assert . assertTrue ( comparePomFiles ( reactorProjects ) )
testLoadUrlNull ( ) { when ( namedClusterManager . getNamedClusterByName ( testNcName , metaStore ) ) . thenReturn ( null ) ; java . lang . String loadURL = jobEntryHadoopCopyFiles . loadURL ( null , null , metaStore , mappings ) ; "<AssertPlaceHolder>" ; verifyNoMoreInteractions ( mappings ) ; } loadURL ( java . lang ...
org . junit . Assert . assertNull ( loadURL )
createAccountTest ( ) { com . docdoku . api . models . AccountDTO accountDTO = com . docdoku . api . TestUtils . createAccount ( ) ; com . docdoku . api . client . ApiClient accountClient = com . docdoku . api . DocDokuPLMClientFactory . createJWTClient ( TestConfig . URL , accountDTO . getLogin ( ) , TestConfig . PASS...
org . junit . Assert . assertEquals ( account . getLogin ( ) , accountDTO . getLogin ( ) )
testLexerNotSet ( ) { org . antlr . v4 . tool . LexerGrammar lg = new org . antlr . v4 . tool . LexerGrammar ( ( "2:RULE_STOP<sp>0\n" 2 + "2:RULE_STOP<sp>0\n" 0 ) ) ; java . lang . String expecting = "max<sp>type<sp>1\n" + ( ( ( ( ( ( ( ( ( ( ( ( "2:RULE_STOP<sp>0\n" 5 + "1:RULE_START<sp>0\n" ) + "2:RULE_STOP<sp>0\n" )...
org . junit . Assert . assertEquals ( expecting , result )
sliceWithoutStopExpression ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = Sequence ( Property ( "foo" ) , Slice ( 3 , null , 1 ) ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "foo[3:]" ) ; "<AssertPlaceHolder>" ; } compile ( java . lang . String ) { retur...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
testIsAccessPointAvailableWrongSSID ( ) { java . lang . String ssid = "mySSID" ; org . eclipse . kura . net . admin . monitor . WifiMonitorServiceImpl svc = getServiceWithScanTool ( ssid , 5 ) ; boolean available = ( ( boolean ) ( org . eclipse . kura . core . testutil . TestUtil . invokePrivate ( svc , "isAccessPointA...
org . junit . Assert . assertFalse ( available )
executeInvokedByGetTest ( ) { org . threadly . test . concurrent . TestRunnable tr = new org . threadly . test . concurrent . TestRunnable ( ) ; org . threadly . concurrent . future . ExecuteOnGetFutureTask < ? > geft = new org . threadly . concurrent . future . ExecuteOnGetFutureTask ( tr ) ; geft . get ( ) ; "<Assert...
org . junit . Assert . assertTrue ( tr . ranOnce ( ) )