input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
updateSchemaOfNull ( ) { java . lang . Object updatedValue = org . apache . kafka . connect . transforms . SetSchemaMetadata . updateSchemaIn ( null , Schema . INT32_SCHEMA ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( null , updatedValue )
testDUMMY ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testGetPreventionExt ( ) { java . lang . String val1 = "100" ; java . lang . String val2 = "200" ; java . lang . String keyVal1 = "alpha" ; java . lang . String keyVal2 = "bravo" ; org . oscarehr . common . model . Prevention prevention1 = new org . oscarehr . common . model . Prevention ( ) ; org . oscarehr . common ....
org . junit . Assert . assertEquals ( expectedResult , result )
testDeleteVertexLimit ( ) { for ( int i = 0 ; i < 10 ; i ++ ) { db . command ( new com . orientechnologies . orient . core . sql . OCommandSQL ( ( ( "create<sp>vertex<sp>User<sp>set<sp>name<sp>=<sp>'foo" + i ) + "'" ) ) ) . execute ( ) ; } final int res = ( ( java . lang . Integer ) ( db . command ( new com . orientech...
org . junit . Assert . assertEquals ( result . size ( ) , 6 )
testIsInvalid_IfProductDoesNotContainAGeoCoding ( ) { when ( _product . getGeoCoding ( ) ) . thenReturn ( null ) ; when ( _product . getName ( ) ) . thenReturn ( "No<sp>Geocoding" ) ; final boolean valid = _productValidator . isValid ( _product ) ; "<AssertPlaceHolder>" ; verify ( _loggerMock ) . info ( "Product<sp>ski...
org . junit . Assert . assertEquals ( false , valid )
testGetMessageReceivedBytes ( ) { final com . allanbank . mongodb . client . metrics . AbstractMetrics mockMetrics = createMock ( com . allanbank . mongodb . client . metrics . AbstractMetrics . class ) ; expect ( mockMetrics . getMessageReceivedBytes ( ) ) . andReturn ( 43121L ) ; replay ( mockMetrics ) ; "<AssertPlac...
org . junit . Assert . assertThat ( mockMetrics . getMessageReceivedBytes ( ) , org . hamcrest . Matchers . is ( 43121L ) )
testSetInterfaceIp ( ) { linkInformation . setInterfaceIp ( org . onlab . packet . Ip4Address . valueOf ( "1.1.1.1" ) ) ; "<AssertPlaceHolder>" ; } interfaceIp ( ) { return interfaceIp ; }
org . junit . Assert . assertThat ( linkInformation . interfaceIp ( ) , org . hamcrest . CoreMatchers . is ( org . onlab . packet . Ip4Address . valueOf ( "1.1.1.1" ) ) )
phenylShouldNotMatchC4H6 ( ) { org . openscience . cdk . depict . Abbreviations factory = new org . openscience . cdk . depict . Abbreviations ( ) ; org . openscience . cdk . interfaces . IAtomContainer mol = org . openscience . cdk . depict . AbbreviationsTest . smi ( "Oc1ccc(O)cc1" ) ; factory . add ( "*c1ccccc1<sp>P...
org . junit . Assert . assertThat ( sgroups . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
test_MapTrie_get_2 ( ) { java . lang . String [ ] words = new java . lang . String [ ] { "ab" , "ac" , "ba" , "bc" , "ca" } ; java . lang . Integer [ ] values = new org . trie4j . Integer [ ] { 0 , 1 , 2 , 3 , 4 } ; org . trie4j . MapTrie < java . lang . Integer > trie = trieWithWordsAndValues ( words , values ) ; for ...
org . junit . Assert . assertEquals ( values [ i ] , trie . get ( words [ i ] ) )
testGetExpirationFromMessageUsingTTL ( ) { final long ttl = 100000 ; org . apache . qpid . proton . message . impl . MessageImpl protonMessage = ( ( org . apache . qpid . proton . message . impl . MessageImpl ) ( Message . Factory . create ( ) ) ) ; protonMessage . setHeader ( new org . apache . qpid . proton . amqp . ...
org . junit . Assert . assertTrue ( ( ( decoded . getExpiration ( ) ) > ( java . lang . System . currentTimeMillis ( ) ) ) )
shouldCollectToLimitedSortedSet ( ) { final java . util . stream . IntStream stream = java . util . stream . IntStream . range ( 0 , 100 ) ; final int limit = 50 ; final boolean deduplicate = true ; final uk . gov . gchq . gaffer . commonutil . iterable . LimitedInMemorySortedIterable < java . lang . Integer > result =...
org . junit . Assert . assertEquals ( 50 , result . size ( ) )
shouldJSONSerialiseAndDeserialise ( ) { final uk . gov . gchq . gaffer . operation . impl . SplitStoreFromFile op = new uk . gov . gchq . gaffer . operation . impl . SplitStoreFromFile ( ) ; op . setInputPath ( uk . gov . gchq . gaffer . operation . impl . SplitStoreFromFileTest . INPUT_DIRECTORY ) ; byte [ ] json = uk...
org . junit . Assert . assertEquals ( uk . gov . gchq . gaffer . operation . impl . SplitStoreFromFileTest . INPUT_DIRECTORY , deserialisedOp . getInputPath ( ) )
testLinspace ( ) { org . nd4j . autodiff . samediff . SameDiff sd = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . autodiff . samediff . SDVariable out = sd . linspace ( "linspace" , DataType . DOUBLE , 1 , 10 , 10 ) ; org . nd4j . autodiff . samediff . SDVariable loss = out . std ( true ) ; ja...
org . junit . Assert . assertNull ( err )
testGetEncoding_Space_to_Nothing ( ) { "<AssertPlaceHolder>" ; } encode ( java . lang . String ) { return getStringEncoder ( ) . encode ( source ) ; }
org . junit . Assert . assertEquals ( "" , this . getStringEncoder ( ) . encode ( "<sp>" ) )
test24 ( ) { "<AssertPlaceHolder>" ; } getByCode ( java . lang . String , java . lang . String , boolean ) { language = com . neovisionaries . i18n . LanguageCode . canonicalize ( language , caseSensitive ) ; if ( language == null ) { return null ; } country = com . neovisionaries . i18n . CountryCode . canonicalize ( ...
org . junit . Assert . assertSame ( LocaleCode . undefined , com . neovisionaries . i18n . LocaleCode . getByCode ( "undefined" , "undefined" , false ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . tools . service . builder . test . model . LVEntry newLVEntry = addLVEntry ( ) ; com . liferay . portal . tools . service . builder . test . model . LVEntry existingLVEntry = _persistence . fetchByPrimaryKey ( newLVEntry . getPrimaryKey ( ) ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( existingLVEntry , newLVEntry )
testCompose ( ) { mikera . indexz . Index a = mikera . indexz . Index . of ( 2 , 1 , 4 ) ; mikera . indexz . Index b = mikera . indexz . Index . of ( 10 , 20 , 30 , 40 , 50 ) ; mikera . indexz . Index c = a . compose ( b ) ; "<AssertPlaceHolder>" ; } of ( double , double , double ) { return new mikera . vectorz . Vecto...
org . junit . Assert . assertEquals ( mikera . indexz . Index . of ( 30 , 20 , 50 ) , c )
testGetTasksAssignedAsBusinessAdministratorWithUserOfWrongGroupLangOneTask ( ) { java . lang . String str = "(with<sp>(new<sp>Task())<sp>{<sp>priority<sp>=<sp>55,<sp>taskData<sp>=<sp>(with(<sp>new<sp>TaskData())<sp>{<sp>}<sp>),<sp>" ; str += "peopleAssignments<sp>=<sp>(with<sp>(<sp>new<sp>PeopleAssignments()<sp>)<sp>{<...
org . junit . Assert . assertEquals ( 0 , tasks . size ( ) )
testNotOpened ( ) { com . sun . mail . test . TestServer server = null ; com . sun . mail . imap . IdleManager idleManager = null ; try { server = new com . sun . mail . test . TestServer ( new com . sun . mail . imap . IMAPHandler ( ) ) ; server . start ( ) ; final java . util . Properties properties = new java . util...
org . junit . Assert . assertTrue ( mex . getMessage ( ) . contains ( "localhost" 1 ) )
shouldAllowUserToConfigureCacheUsingConfigFilePath ( ) { initialiseWithTestConfig ( ) ; uk . gov . gchq . gaffer . cache . ICache < java . lang . String , java . lang . Integer > cache = uk . gov . gchq . gaffer . cache . impl . HazelcastCacheServiceTest . service . getCache ( uk . gov . gchq . gaffer . cache . impl . ...
org . junit . Assert . assertEquals ( 0 , cache . size ( ) )
testSamlConditionsNotAfterIsNull ( ) { final gov . hhs . fha . nhinc . callback . opensaml . CallbackProperties callbackProps = mock ( gov . hhs . fha . nhinc . callback . opensaml . CallbackProperties . class ) ; final gov . hhs . fha . nhinc . callback . opensaml . HOKSAMLAssertionBuilder builder = gov . hhs . fha . ...
org . junit . Assert . assertNull ( conditions )
quorumPresent_whenMembersJustAdded ( ) { java . util . List < com . hazelcast . core . Member > members = mockMembers ( ) ; quorumFunction . memberAdded ( mockEvent ( members . get ( 0 ) ) ) ; quorumFunction . memberAdded ( mockEvent ( members . get ( 1 ) ) ) ; "<AssertPlaceHolder>" ; } apply ( Map . Entry ) { return (...
org . junit . Assert . assertTrue ( quorumFunction . apply ( members ) )
testPositionWrite ( ) { it . unimi . dsi . fastutil . io . FastByteArrayOutputStream fbaos = new it . unimi . dsi . fastutil . io . FastByteArrayOutputStream ( ) ; fbaos . position ( 1 ) ; fbaos . write ( 1 ) ; "<AssertPlaceHolder>" ; } write ( java . nio . ByteBuffer ) { ensureOpen ( ) ; final int remaining = byteBuff...
org . junit . Assert . assertEquals ( 2 , fbaos . length )
testThrowCheckedException ( ) { java . io . IOException expected = new java . io . IOException ( "EXPECTED<sp>ERROR" ) ; java . io . IOException actual = null ; try { org . slieb . throwables . ToDoubleFunctionWithThrowable . aToDoubleFunctionThatUnsafelyThrowsUnchecked ( ( v1 ) -> { throw expected ; } ) . applyAsDoubl...
org . junit . Assert . assertEquals ( expected , actual )
testDefaultCharsetIgnoredByNonTextContent ( ) { email . setHostName ( strTestMailServer ) ; email . setSmtpPort ( getMailServerPort ( ) ) ; email . setFrom ( "a@b.com" ) ; email . addTo ( "c@d.com" ) ; email . setSubject ( "test<sp>mail" ) ; email . setCharset ( "ISO-8859-1" ) ; email . setContent ( "test<sp>content" ,...
org . junit . Assert . assertEquals ( "application/octet-stream" , msg . getContentType ( ) )
typedObjectFromLongAndInteger ( ) { com . pardot . rhombus . cobject . CField field = new com . pardot . rhombus . cobject . CField ( "test" , "int" ) ; java . lang . Long jsonValue = 1234567L ; java . lang . Integer expected = 1234567 ; java . lang . Object result = com . pardot . rhombus . util . JsonUtil . typedObje...
org . junit . Assert . assertEquals ( expected , result )
testFalsePositive ( ) { java . lang . String header = "<?xml<sp>version=\"\"?><PC-Substances><PC-Substance/></PC-Substances>" ; "<AssertPlaceHolder>" ; } matches ( org . openscience . cdk . interfaces . IAtom ) { return ! ( symbols . contains ( atom . getSymbol ( ) ) ) ; }
org . junit . Assert . assertFalse ( matches ( header ) )
shouldReturnMinOffsetWhenOffsetIsBelowMin ( ) { java . lang . Integer offset = org . openstack . atlas . api . helpers . PaginationHelper . determinePageOffset ( ( ( PaginationHelper . MIN_PAGE_OFFSET ) - 1 ) ) ; "<AssertPlaceHolder>" ; } determinePageOffset ( java . lang . Integer ) { if ( offset == null ) return org ...
org . junit . Assert . assertEquals ( PaginationHelper . MIN_PAGE_OFFSET , offset )
testStartBillingRun_withSuccesfullShareCalculation ( ) { doReturn ( Boolean . TRUE ) . when ( billingServiceBean ) . performShareCalculationRun ( any ( org . oscm . billingservice . service . DataProviderTimerBased . class ) ) ; doReturn ( validBillingData ) . when ( bdr ) . getSubscriptionsForBilling ( anyLong ( ) , a...
org . junit . Assert . assertTrue ( billingRun )
testBulkWithinLong ( ) { this . sqlgGraph . addVertex ( T . label , "A" , "name" , 1L ) ; this . sqlgGraph . addVertex ( T . label , "A" , "name" , 2L ) ; this . sqlgGraph . addVertex ( T . label , "A" , "name" , 3L ) ; this . sqlgGraph . tx ( ) . commit ( ) ; java . util . List < org . apache . tinkerpop . gremlin . s...
org . junit . Assert . assertEquals ( 3 , vertices . size ( ) )
test_copyFromSequence ( ) { rb . add ( 1 ) ; rb . add ( 2 ) ; com . hazelcast . jet . impl . metrics . management . ConcurrentArrayRingbuffer . RingbufferSlice result = rb . copyFrom ( 0 ) ; rb . add ( 3 ) ; result = rb . copyFrom ( result . nextSequence ( ) ) ; "<AssertPlaceHolder>" ; } elements ( ) { return ( ( java ...
org . junit . Assert . assertEquals ( singletonList ( 3 ) , result . elements ( ) )
testGetTasksAssignedByGroupWithGroupLangOneTask ( ) { java . lang . String str = "(with<sp>(new<sp>Task())<sp>{<sp>priority<sp>=<sp>55,<sp>taskData<sp>=<sp>(with(<sp>new<sp>TaskData())<sp>{<sp>}<sp>),<sp>" ; str += "peopleAssignments<sp>=<sp>(with<sp>(<sp>new<sp>PeopleAssignments()<sp>)<sp>{<sp>potentialOwners<sp>=<sp>...
org . junit . Assert . assertEquals ( 1 , tasks . size ( ) )
testIsUserReadable ( ) { "<AssertPlaceHolder>" ; } isReadable ( java . lang . Class , java . lang . reflect . Type , java . lang . annotation . Annotation [ ] , javax . ws . rs . core . MediaType ) { return svanimpe . reminders . domain . User . class . isAssignableFrom ( type ) ; }
org . junit . Assert . assertTrue ( reader . isReadable ( svanimpe . reminders . domain . User . class , null , null , null ) )
testAsPrimitiveTypeUsage ( ) { int exceptions = 0 ; try { arrayOfBoolean . asPrimitiveTypeUsage ( ) ; } catch ( java . lang . UnsupportedOperationException uoe ) { exceptions ++ ; } try { arrayOfString . asPrimitiveTypeUsage ( ) ; } catch ( java . lang . UnsupportedOperationException uoe ) { exceptions ++ ; } try { arr...
org . junit . Assert . assertEquals ( 3 , exceptions )
testGetParametersWithDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . employee . type . EmployeeType entity = new org . lnu . is . domain . employee . type . EmployeeType ( ) ; java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb"...
org . junit . Assert . assertEquals ( expected , actual )
testRpcException ( ) { com . alibaba . dubbo . common . logger . Logger logger = org . easymock . EasyMock . createMock ( com . alibaba . dubbo . common . logger . Logger . class ) ; com . alibaba . dubbo . rpc . RpcContext . getContext ( ) . setRemoteAddress ( "127.0.0.1" , 1234 ) ; com . alibaba . dubbo . rpc . RpcEx...
org . junit . Assert . assertEquals ( "TestRpcException" , e . getMessage ( ) )
testBlokkeringInfoAntwoordFout ( ) { final nl . bzk . migratiebrp . bericht . model . sync . generated . BlokkeringInfoVerzoekType blokkeringInfoVerzoekType = new nl . bzk . migratiebrp . bericht . model . sync . generated . BlokkeringInfoVerzoekType ( ) ; final nl . bzk . migratiebrp . bericht . model . sync . impl . ...
org . junit . Assert . assertNotNull ( "Er<sp>zou<sp>een<sp>technische<sp>fout<sp>op<sp>moeten<sp>treden." , e )
testExecuteS3SpecificSteps ( ) { org . finra . herd . model . dto . S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = org . finra . herd . model . dto . S3FileTransferRequestParamsDto . builder ( ) . withS3BucketName ( org . finra . herd . service . S3_BUCKET_NAME ) . withS3KeyPrefix ( ( ( TEST_S3_KEY_PRE...
org . junit . Assert . assertEquals ( storageFiles . size ( ) , s3Dao . listDirectory ( s3FileTransferRequestParamsDto ) . size ( ) )
testReportingLevelNoneByFilter ( ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollectorTest . TestTraceService traceService = new org . hawkular . apm . client . collector . internal . DefaultTraceCollectorTest . TestTraceService ( ) ; org . hawkular . apm . client . collector . internal . Def...
org . junit . Assert . assertEquals ( 0 , traces . size ( ) )
should_return_this ( ) { org . fest . assertions . api . BooleanArrayAssert returned = assertions . isNullOrEmpty ( ) ; "<AssertPlaceHolder>" ; } isNullOrEmpty ( ) { arrays . assertNullOrEmpty ( description , actual ) ; return this ; }
org . junit . Assert . assertSame ( returned , assertions )
shouldTokenizeVersionString ( ) { com . github . zafarkhaja . semver . expr . Token [ ] expected = new com . github . zafarkhaja . semver . expr . Token [ ] { new com . github . zafarkhaja . semver . expr . Token ( GREATER , ">" , 0 ) , new com . github . zafarkhaja . semver . expr . Token ( NUMERIC , "1" , 1 ) , new c...
org . junit . Assert . assertArrayEquals ( expected , stream . toArray ( ) )
testNestedDateTimePrint ( ) { java . util . List < org . apache . drill . exec . rpc . user . QueryDataBatch > resultList = testSqlWithResults ( java . lang . String . format ( "select<sp>*<sp>from<sp>%s<sp>limit<sp>1" , org . apache . drill . exec . physical . impl . TestNestedDateTimeTimestamp . DATAFILE ) ) ; java ....
org . junit . Assert . assertEquals ( expected . trim ( ) , actual . trim ( ) )
testBuildWithParametersAndDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String name = "name" ; org . lnu . is . domain . education . form . type . EducationFormType context = new org . lnu . is . domain . education . form . type . EducationFormType ( ) ; cont...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testFree ( ) { java . sql . ResultSet rs = getRS ( ) ; "<AssertPlaceHolder>" ; java . sql . SQLXML xml = rs . getSQLXML ( 1 ) ; xml . free ( ) ; xml . free ( ) ; try { xml . getString ( ) ; org . junit . Assert . fail ( "Not<sp>freed." ) ; } catch ( java . sql . SQLException sqle ) { } } next ( ) { checkClosed ( ) ; if...
org . junit . Assert . assertTrue ( rs . next ( ) )
testGetPagerStringMapOfStringObjectIntegerInteger ( ) { java . lang . String jpql = "SELECT<sp>DISTINCT<sp>u<sp>FROM<sp>User<sp>u<sp>JOIN<sp>u.roles<sp>r<sp>WHERE<sp>u.email<sp>LIKE<sp>:email<sp>AND<sp>r.name<sp>IN<sp>:roleNames" ; java . util . Map < java . lang . String , java . lang . Object > args = new java . util...
org . junit . Assert . assertFalse ( ls . isEmpty ( ) )
testGetDouble ( ) { org . nd4j . linalg . api . ndarray . INDArray n2 = org . nd4j . linalg . factory . Nd4j . create ( org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 30 , 30 ) . data ( ) , new long [ ] { 3 , 5 , 2 } ) ; org . nd4j . linalg . api . ndarray . INDArray swapped = n2 . swapAxes ( ( ( n2 . shape ( ) ...
org . junit . Assert . assertEquals ( assertion , slice0 )
ifPresentPrints ( ) { org . everit . json . schema . internal . JSONPrinter subject = subject ( ) ; subject . object ( ) ; subject . ifPresent ( "mykey" , "myvalue" ) ; subject . endObject ( ) ; "<AssertPlaceHolder>" ; } actualObj ( ) { return new org . json . JSONObject ( buffer . toString ( ) ) ; }
org . junit . Assert . assertEquals ( "myvalue" , actualObj ( ) . get ( "mykey" ) )
testPutSchedulerPlacementZoneWithTagsShouldFail ( ) { com . vmware . photon . controller . model . resources . ResourcePoolService . ResourcePoolState createdPlacementZone = createPlacementZone ( "scheduler-placement-zone" , true ) ; "<AssertPlaceHolder>" ; addTags ( createdPlacementZone ) ; try { doPut ( createdPlacem...
org . junit . Assert . assertNotNull ( createdPlacementZone )
isEditDisabled ( ) { bean . setSelectedServiceKey ( java . lang . Long . valueOf ( ( - 1 ) ) ) ; bean . updatePriceModel ( ) ; "<AssertPlaceHolder>" ; } isEditDisabled ( ) { bean . setSelectedServiceKey ( java . lang . Long . valueOf ( ( - 1 ) ) ) ; bean . updatePriceModel ( ) ; org . junit . Assert . assertTrue ( bean...
org . junit . Assert . assertTrue ( bean . isEditDisabled ( ) )
basicTest ( ) { initCL ( defaultPlatformIndex , defaultDeviceType , defaultDeviceIndex ) ; initKernel ( "sampleKernel" , org . jocl . test . JOCLBasicTest . programSource ) ; int n = 10 ; float [ ] srcArrayA = new float [ n ] ; float [ ] srcArrayB = new float [ n ] ; float [ ] dstArray = new float [ n ] ; for ( int i =...
org . junit . Assert . assertTrue ( passed )
testShortWithHeader ( ) { de . metanome . backend . input . file . CsvFileShortLineWithHeaderFixture shortLineFixture = new de . metanome . backend . input . file . CsvFileShortLineWithHeaderFixture ( ) ; de . metanome . backend . input . file . FileIterator csvFileShortWithHeader = shortLineFixture . getTestData ( ) ;...
org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( "2" ) )
testOneClassMatches ( ) { japicmp . filter . JavaDocLikeClassFilter classFilter = new japicmp . filter . JavaDocLikeClassFilter ( "japicmp.Test" ) ; javassist . CtClass ctClass = japicmp . util . CtClassBuilder . create ( ) . name ( "japicmp.Test" ) . addToClassPool ( new javassist . ClassPool ( ) ) ; "<AssertPlaceHold...
org . junit . Assert . assertThat ( classFilter . matches ( ctClass ) , org . hamcrest . core . Is . is ( true ) )
includeTest ( ) { org . opendaylight . yangtools . yang . parser . stmt . reactor . ReactorDeclaredModel result = org . opendaylight . yangtools . yang . parser . rfc7950 . reactor . RFC7950Reactors . defaultReactor ( ) . newBuild ( ) . addSources ( org . opendaylight . yangtools . yang . stmt . IncludeResolutionTest ....
org . junit . Assert . assertNotNull ( result )
testArangeMul ( ) { org . nd4j . linalg . api . ndarray . INDArray arange = org . nd4j . linalg . factory . Nd4j . arange ( 1 , 17 ) . reshape ( 'f' , 4 , 4 ) ; org . nd4j . linalg . indexing . INDArrayIndex index = org . nd4j . linalg . indexing . NDArrayIndex . interval ( 0 , 2 ) ; org . nd4j . linalg . api . ndarray...
org . junit . Assert . assertEquals ( assertion , mul )
given_a_persisted_order_when_transactional_update_the_root_then_order_updated ( ) { org . aggregateframework . sample . complexmodel . command . domain . entity . BookingOrder bookingOrder = buildOrder ( ) ; orderRepository . save ( bookingOrder ) ; orderRepository . flush ( ) ; org . aggregateframework . sample . comp...
org . junit . Assert . assertEquals ( expectedBookingOrder . getContent ( ) , foundBookingOrder . getContent ( ) )
testIsDuplicateKey_isDuplicateKey_usingDataSource ( ) { java . lang . String databaseProductName = "HSQL<sp>Database<sp>Engine" ; javax . sql . DataSource dataSource = createMockDataSource ( databaseProductName ) ; org . axonframework . eventsourcing . eventstore . jpa . SQLErrorCodesResolver sqlErrorCodesResolver = ne...
org . junit . Assert . assertTrue ( isDuplicateKey )
testListShardsSingleResponse ( ) { final java . util . List < software . amazon . awssdk . services . kinesis . model . Shard > expectedShards = new java . util . ArrayList ( ) ; final software . amazon . awssdk . services . kinesis . model . ListShardsResponse listShardsResponse = software . amazon . awssdk . services...
org . junit . Assert . assertThat ( shards , org . hamcrest . CoreMatchers . equalTo ( expectedShards ) )
ctasFailures ( ) { java . lang . String inputTable = "ctasFailureInput" ; java . lang . String fileName = "f.json" ; java . io . File directory = new java . io . File ( getDfsTestTmpSchemaLocation ( ) , inputTable ) ; directory . mkdir ( ) ; java . io . PrintStream ps = new java . io . PrintStream ( new java . io . Fil...
org . junit . Assert . assertFalse ( new java . io . File ( getDfsTestTmpSchemaLocation ( ) , outputTable ) . exists ( ) )
test ( ) { final org . opendaylight . yangtools . yang . model . api . SchemaContext context = org . opendaylight . yangtools . yang . stmt . StmtTestUtils . parseYangSources ( "/bugs/identity-ietf-routing-test/" ) ; "<AssertPlaceHolder>" ; } parseYangSources ( org . opendaylight . yangtools . yang . parser . spi . sou...
org . junit . Assert . assertNotNull ( context )
testCreateEncounterHistorySectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . ihe . EncounterHistorySection > sectionBuilder = org . openhealthtools . mdht . uml . cda . ihe . builder . IHEBuilderFactory . createEncounterHistorySectionBui...
org . junit . Assert . assertNotNull ( section )
shouldBeTopLevelWithImplicitTx ( ) { org . neo4j . kernel . impl . coreapi . InternalTransaction tx = mock ( org . neo4j . kernel . impl . coreapi . InternalTransaction . class ) ; when ( tx . transactionType ( ) ) . thenReturn ( KernelTransaction . Type . implicit ) ; org . neo4j . kernel . impl . query . Neo4jTransac...
org . junit . Assert . assertTrue ( context . isTopLevelTx ( ) )
test1 ( ) { com . dianping . puma . alarm . core . model . data . PullTimeDelayAlarmData data = new com . dianping . puma . alarm . core . model . data . PullTimeDelayAlarmData ( ) ; data . setPullTimeDelayInSecond ( 1000 ) ; com . dianping . puma . alarm . core . model . benchmark . PullTimeDelayAlarmBenchmark benchma...
org . junit . Assert . assertTrue ( state . isAlarm ( ) )
testInit_nullConfigs ( ) { com . streamsets . datacollector . credential . azure . keyvault . AzureKeyVaultCredentialStore store = new com . streamsets . datacollector . credential . azure . keyvault . AzureKeyVaultCredentialStore ( ) ; com . streamsets . pipeline . api . credential . CredentialStore . Context context ...
org . junit . Assert . assertEquals ( 3 , store . init ( context ) . size ( ) )
testSerialization ( ) { org . jfree . data . time . TimePeriodValue tpv1 = new org . jfree . data . time . TimePeriodValue ( new org . jfree . data . time . Day ( 30 , 7 , 2003 ) , 55.75 ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . ...
org . junit . Assert . assertEquals ( tpv1 , tpv2 )
testReadOptionalExistingOptionalFieldWhichIsExistingField ( ) { org . pm4j . core . pm . impl . pathresolver . Pojo p = org . pm4j . core . pm . impl . pathresolver . Pojo . make ( "head" , "subName" , "subSubName" ) ; org . pm4j . common . expr . Expression expr = org . pm4j . core . pm . impl . expr . PathExpressionC...
org . junit . Assert . assertEquals ( "subSubName" , expr . exec ( new org . pm4j . common . expr . ExprExecCtxt ( p ) ) )
createService ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareGradle ( project . getName ( ) , com . liferay . ide . ui . module . tests . SERVICE ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningJobs ( ) ; viewAction . project . refreshGradleProject ( com . liferay . ...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( com . liferay . ide . ui . module . tests . NewModuleProjectWizardLiferayWorkspaceGradleTests . liferayWorkspace . getModuleFiles ( project . getName ( ) ) ) )
withThreeNodes ( ) { treegraph . BinaryTreeNode root = new treegraph . BinaryTreeNode ( 1 ) ; root . left = new treegraph . BinaryTreeNode ( 2 ) ; root . right = new treegraph . BinaryTreeNode ( 3 ) ; "<AssertPlaceHolder>" ; } isBalanced ( treegraph . BinaryTreeNode ) { return ( isBalancedWithHeight ( root ) ) != ( - 1...
org . junit . Assert . assertTrue ( s . isBalanced ( root ) )
testAutomaticTasks ( ) { com . effektif . workflow . api . workflow . ExecutableWorkflow workflow = new com . effektif . workflow . api . workflow . ExecutableWorkflow ( ) . activity ( "start" , new com . effektif . workflow . api . activities . StartEvent ( ) . transitionTo ( "fork" ) ) . activity ( "fork" , new com ....
org . junit . Assert . assertTrue ( workflowInstance . isEnded ( ) )
removeContext ( ) { org . xwiki . context . Execution execution = new org . xwiki . context . internal . DefaultExecution ( ) ; execution . pushContext ( new org . xwiki . context . ExecutionContext ( ) ) ; execution . pushContext ( new org . xwiki . context . ExecutionContext ( ) ) ; execution . pushContext ( new org ...
org . junit . Assert . assertNull ( execution . getContext ( ) )
parseElRmcTest ( ) { java . lang . String line = "$ELRMC,095755,A,5154.9566,N,00125.8246,E,006.8,210.5,010313,0,E*72" ; dk . dma . epd . common . prototype . sensor . nmea . RmcSentence sentence = new dk . dma . epd . common . prototype . sensor . nmea . RmcSentence . ElRmcSentence ( ) ; "<AssertPlaceHolder>" ; } parse...
org . junit . Assert . assertEquals ( sentence . parse ( line ) , 0 )
testRequiredFalseReference ( ) { try { org . apache . tuscany . sca . itest . references . AutoWiredReferenceTestCase . acomponent . getDReference ( ) . dFoo ( ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } dFoo ( ) { return "DComponent" ; }
org . junit . Assert . assertTrue ( true )
distributePortsWhileSweeping_givenSimpleCross_ShouldRemoveCrossing ( ) { org . eclipse . elk . alg . layered . graph . LNode leftNode = addNodeToLayer ( makeLayer ( getGraph ( ) ) ) ; org . eclipse . elk . alg . layered . graph . LNode rightNode = addNodeToLayer ( makeLayer ( getGraph ( ) ) ) ; eastWestEdgeFromTo ( lef...
org . junit . Assert . assertThat ( rightNode . getPorts ( ) , org . hamcrest . CoreMatchers . is ( expectedPortRightNode ) )
getNoSuchTable ( ) { org . apache . hadoop . hive . metastore . api . NotNullConstraintsRequest rqst = new org . apache . hadoop . hive . metastore . api . NotNullConstraintsRequest ( org . apache . hadoop . hive . metastore . Warehouse . DEFAULT_CATALOG_NAME , org . apache . hadoop . hive . metastore . Warehouse . DEF...
org . junit . Assert . assertTrue ( nn . isEmpty ( ) )
test_GetDataGrid_By_Name_and_ControlName ( ) { when ( element . findFirst ( mmarquee . automation . BaseAutomationTest . isTreeScope ( TreeScope . Descendants ) , any ( ) ) ) . thenReturn ( targetElement ) ; mmarquee . automation . BaseAutomationTest . setElementClassName ( elem , "TXYZ" ) ; mmarquee . automation . con...
org . junit . Assert . assertEquals ( targetElement , edit . getElement ( ) )
testSerialization ( ) { org . jfree . data . xy . MatrixSeries s1 = new org . jfree . data . xy . MatrixSeries ( "Series" , 2 , 3 ) ; s1 . update ( 0 , 0 , 1.1 ) ; org . jfree . data . xy . MatrixSeriesCollection c1 = new org . jfree . data . xy . MatrixSeriesCollection ( ) ; c1 . addSeries ( s1 ) ; org . jfree . data ...
org . junit . Assert . assertEquals ( c1 , c2 )
shouldCompareReturnMinusOneIfSolutionAHasLessRanking ( ) { @ org . uma . jmetal . util . comparator . SuppressWarnings ( "unchecked" ) org . uma . jmetal . util . solutionattribute . Ranking < org . uma . jmetal . solution . Solution < ? > > ranking = mock ( org . uma . jmetal . util . solutionattribute . Ranking . cla...
org . junit . Assert . assertEquals ( ( - 1 ) , comparator . compare ( solution1 , solution2 ) )
whenEmployingVehicleWhereOnlyOneDistinctVehicleCanServeAParticularJobWith_jspritAlgorithmShouldFoundDistinctSolution ( ) { final java . util . List < java . lang . Boolean > testFailed = new java . util . ArrayList < java . lang . Boolean > ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { jsprit . core . problem . VehicleRout...
org . junit . Assert . assertTrue ( testFailed . isEmpty ( ) )
testCreateGroupProvider ( ) { logger . info ( LinShareTestConstants . BEGIN_TEST ) ; org . linagora . linshare . core . domain . entities . LdapGroupProvider groupProvider = new org . linagora . linshare . core . domain . entities . LdapGroupProvider ( groupPattern , "dc=nodomain,dc=com" , ldapconnexion , false ) ; gro...
org . junit . Assert . assertNotNull ( groupProvider )
doesntSupportAnyVocabulary ( ) { when ( this . vocabularyInstance . getIdentifier ( ) ) . thenReturn ( "invalid" ) ; "<AssertPlaceHolder>" ; } isVocabularySupported ( org . phenotips . vocabulary . Vocabulary ) { return getTargetVocabularyId ( ) . equals ( vocabulary . getIdentifier ( ) ) ; }
org . junit . Assert . assertFalse ( this . extension . isVocabularySupported ( this . vocabularyInstance ) )
shouldGiveNewInstancesOfUnscopedClassWithinAScenario ( ) { factory = new cucumber . runtime . java . guice . impl . GuiceFactory ( injector ( cucumber . api . guice . CucumberModules . createScenarioModule ( ) ) ) ; instancesFromSameScenario = getInstancesFromSameScenario ( factory , cucumber . runtime . java . guice ....
org . junit . Assert . assertThat ( instancesFromSameScenario , elementsAreAllUnique ( ) )
testCloneDiff ( ) { org . openscience . cdk . interfaces . IElement elem = ( ( org . openscience . cdk . interfaces . IElement ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IElement clone = ( ( org . openscience . cdk . interfaces . IElement ) ( elem . clone ( ) ) ) ; "<AssertPlaceHolder>" ; } diff...
org . junit . Assert . assertEquals ( "" , org . openscience . cdk . tools . diff . ElementDiff . diff ( elem , clone ) )
findReturnsNullWhenRulesChildIsNull ( ) { java . util . ArrayList < org . apache . maven . model . Plugin > buildPlugins = new java . util . ArrayList ( ) ; buildPlugins . add ( enforcerPlugin ) ; when ( mavenProject . getBuildPlugins ( ) ) . thenReturn ( buildPlugins ) ; java . util . ArrayList < org . apache . maven ...
org . junit . Assert . assertNull ( new org . codehaus . mojo . versions . RequiredMavenVersionFinder ( mavenProject ) . find ( ) )
run ( ) { java . lang . String aMessage = "helloFromRun" ; java . io . InputStream stream = new java . io . ByteArrayInputStream ( aMessage . getBytes ( ) ) ; externalProcessReader = new com . att . aro . core . commandline . impl . ExternalProcessReaderImpl ( ) ; externalProcessReader . setInputStream ( stream ) ; sub...
org . junit . Assert . assertTrue ( com . att . aro . core . commandline . impl . ExternalProcessReaderImplTest . message . equals ( aMessage ) )
testAcceptInValidParameter2 ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "add<sp>exit" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleState ) ...
org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( false ) )
testGuestCanCreateWorkspacesForOthers ( ) { java . util . Map < java . lang . String , java . lang . String > workspace = com . google . common . collect . ImmutableMap . of ( "title" , "my<sp>workspace" , Core . METACARD_OWNER , "a@b.c" ) ; com . jayway . restassured . response . Response res = ddf . test . itests . c...
org . junit . Assert . assertNotNull ( id )
testFindByPrimaryKeyExisting ( ) { com . liferay . asset . kernel . model . AssetLink newAssetLink = addAssetLink ( ) ; com . liferay . asset . kernel . model . AssetLink existingAssetLink = _persistence . findByPrimaryKey ( newAssetLink . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amIm...
org . junit . Assert . assertEquals ( existingAssetLink , newAssetLink )
level3Miss ( ) { final int i = 1 << ( com . zaxxer . sparsebits . SparseBitSet . SHIFT3 ) ; set . set ( i ) ; final int ret = set . previousClearBit ( i ) ; "<AssertPlaceHolder>" ; } previousClearBit ( int ) { if ( i < 0 ) { if ( i == ( - 1 ) ) return - 1 ; throw new java . lang . IndexOutOfBoundsException ( ( "i=" + i...
org . junit . Assert . assertEquals ( ( i - 1 ) , ret )
testGetParentsForStudent ( ) { org . slc . sli . dashboard . client . LiveAPIClient client = new org . slc . sli . dashboard . client . LiveAPIClient ( ) { @ org . slc . sli . dashboard . unit . client . Override public java . util . List < org . slc . sli . dashboard . entity . GenericEntity > createEntitiesFromAPI ( ...
org . junit . Assert . assertTrue ( client . getParentsForStudent ( null , null ) . isEmpty ( ) )
validRuleNestedFunction ( ) { org . sonar . plugins . delphi . pmd . DelphiUnitBuilderTest builder = new org . sonar . plugins . delphi . pmd . DelphiUnitBuilderTest ( ) ; builder . appendDecl ( "procedure<sp>TestNestedParams(const<sp>aValue<sp>:<sp>string);" ) ; builder . appendImpl ( "procedure<sp>TestNestedParams(co...
org . junit . Assert . assertThat ( toString ( issues ) , issues , is ( empty ( ) ) )
testInWildcard ( ) { final java . lang . String voorwaardeRegel = "08.11.60<sp>OGA1<sp>\"1024/*\"<sp>ENVGL<sp>\"1025/*\"<sp>ENVGL<sp>\"1026/*\"<sp>ENVGL<sp>\"1027/*\"<sp>ENVGL<sp>\"1028/*\"<sp>ENVGL<sp>\"1034/*\"<sp>ENVGL<sp>\"1035/*\"<sp>ENVGL<sp>" + "\"2521/*\"" ; final java . lang . String expressieVerwacht = "NIET(...
org . junit . Assert . assertEquals ( expressieVerwacht , expressie )
testShouldReturnMatchIfOneFieldMatchesAndOnlyOneDriverIsRegistered ( ) { org . openqa . selenium . remote . DesiredCapabilities template = new org . openqa . selenium . remote . DesiredCapabilities ( ) ; template . setBrowserName ( "foo" ) ; template . setVersion ( "1.0" ) ; template . setPlatform ( org . openqa . sele...
org . junit . Assert . assertEquals ( org . openqa . selenium . remote . server . DriverFactoryTest . DriverOne . class , result )
testIntIdentity ( ) { org . kitesdk . data . PartitionStrategy intIdStrategy = new org . kitesdk . data . PartitionStrategy . Builder ( ) . identity ( "intField" ) . build ( ) ; org . kitesdk . data . PartitionStrategy copy = new org . kitesdk . data . PartitionExpression ( org . kitesdk . data . PartitionExpression . ...
org . junit . Assert . assertEquals ( intIdStrategy , copy )
givenCondition_whenIterateArrayList_thenFindAllElementsSatisfyingCondition ( ) { org . baeldung . java . collections . Iterator < java . lang . String > it = stringsToSearch . iterator ( ) ; org . baeldung . java . collections . Set < java . lang . String > matchingStrings = new org . baeldung . java . collections . Ha...
org . junit . Assert . assertEquals ( 6 , result . size ( ) )
testSetLocalPhoneAutocompleteWithType ( ) { com . github . bordertech . wcomponents . WPhoneNumberField field = new com . github . bordertech . wcomponents . WPhoneNumberField ( ) ; java . lang . String expected ; for ( com . github . bordertech . wcomponents . autocomplete . segment . PhoneFormat phoneType : com . git...
org . junit . Assert . assertEquals ( expected , field . getAutocomplete ( ) )
testLoadFailure ( ) { java . lang . ClassLoader currentClassLoader = com . vladmihalcea . flexypool . util . ClassLoaderUtils . getClassLoader ( ) ; try { java . lang . Thread . currentThread ( ) . setContextClassLoader ( new java . lang . ClassLoader ( ) { @ com . vladmihalcea . flexypool . metric . codahale . Overrid...
org . junit . Assert . assertNull ( metricsFactory )
testParseObjectIdInArray ( ) { final com . allanbank . mongodb . bson . json . JsonParser parser = new com . allanbank . mongodb . bson . json . JsonParser ( ) ; final java . lang . Object doc = parser . parse ( "{<sp>a<sp>:<sp>[ObjectId('4e9d87aa5825b60b637815a6')]<sp>}" ) ; final com . allanbank . mongodb . bson . bu...
org . junit . Assert . assertEquals ( b . build ( ) , doc )
generateNewId_NullService ( ) { gen = new org . oscm . ui . generator . IdGenerator ( "" , null , subscriptions ) ; "<AssertPlaceHolder>" ; } generateNewId ( ) { java . lang . String temp = ( ( prefix ) + ( baseId ) ) . trim ( ) ; if ( ( temp . length ( ) ) > ( org . oscm . validator . ADMValidator . LENGTH_ID ) ) { te...
org . junit . Assert . assertEquals ( "" , gen . generateNewId ( ) )
testPropertyIsEqualToShortLiteral ( ) { net . opengis . filter . v_1_1_0 . FilterType filterType = cswFilterDelegate . propertyIsEqualTo ( propertyName , shortLiteral ) ; java . lang . String cqlText = org . codice . ddf . spatial . ogc . csw . catalog . source . CswCqlTextFilter . getInstance ( ) . getCqlText ( filter...
org . junit . Assert . assertEquals ( propertyIsEqualTo , cqlText )
onErrorStopsProcessingTest ( ) { java . lang . Throwable expected = new java . lang . Throwable ( "Wheee" ) ; addItemsToReturn ( 10 ) ; recordsPublisher . add ( new software . amazon . kinesis . lifecycle . ShardConsumerSubscriberTest . ResponseItem ( expected ) ) ; addItemsToReturn ( 10 ) ; setupNotifierAnswer ( 10 ) ...
org . junit . Assert . assertThat ( subscriber . retrievalFailure ( ) , org . hamcrest . CoreMatchers . equalTo ( expected ) )
testGet_createsClientObjectLazily ( ) { org . eclipse . rap . rwt . remote . RemoteObject remoteObject = org . eclipse . rap . rwt . internal . protocol . RemoteObjectFactory . getRemoteObject ( shell ) ; "<AssertPlaceHolder>" ; } getRemoteObject ( org . eclipse . swt . widgets . Widget ) { org . eclipse . rap . rwt . ...
org . junit . Assert . assertNotNull ( remoteObject )