input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
AccessInstanceVariableSuperSuperClass ( ) { java . lang . String fromClass = "Domain.Direct.Violating.AccessInstanceVariableSuperSuperClass" ; java . lang . String toClass = "Technology.Direct.Subclass.CallInstanceSubSubClassDOA" ; java . util . ArrayList < java . lang . String > typesToFind = new java . util . ArrayLi... | org . junit . Assert . assertTrue ( totalOutcome ) |
updateMarketplaceTrackingCode ( ) { addUserRole ( UserRoleType . MARKETPLACE_OWNER ) ; org . oscm . domobjects . Marketplace newMarketplace = org . oscm . marketplace . bean . MarketplaceServiceLocalBeanTest . givenMarketplace ( ) ; org . oscm . domobjects . Marketplace dbMarketplace = org . oscm . marketplace . bean .... | org . junit . Assert . assertEquals ( org . oscm . marketplace . bean . MarketplaceServiceLocalBeanTest . TrackcodeChanged , dbMarketplace . getTrackingCode ( ) ) |
testCreateAttachmentRetryOnce ( ) { _resource . configure ( "BigSwitchBcfResource" , _parameters ) ; com . cloud . network . bigswitch . AttachmentData attachmentData = mock ( com . cloud . network . bigswitch . AttachmentData . class ) ; com . cloud . network . bigswitch . AttachmentData . Attachment attachment = mock... | org . junit . Assert . assertTrue ( ans . getResult ( ) ) |
iter_truncate_05 ( ) { java . util . List < java . lang . String > data = java . util . Arrays . asList ( "a" , "b" , "b" , "c" , "c" , "d" ) ; java . util . Iterator < java . lang . String > iter = new org . apache . jena . atlas . iterator . IteratorTruncate ( data . iterator ( ) , ( item ) -> ! ( item . equals ( "c"... | org . junit . Assert . assertEquals ( 3 , n ) |
test_generateConfigurationForShakedownTest_ioException ( ) { ch . puzzle . itc . mobiliar . business . shakedown . entity . ShakedownTestEntity test = ch . puzzle . itc . mobiliar . builders . ShakedownTestEntityBuilder . mockShakedownTestEntity ( contextEntity , applicationServer , dep , null , applicationServer . get... | org . junit . Assert . assertNull ( result ) |
getResultTest ( ) { com . zenika . util . Success < java . lang . Integer > success = new com . zenika . util . Success ( 1 ) ; "<AssertPlaceHolder>" ; } getResult ( ) { return result ; } | org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , success . getResult ( ) ) |
testCqEvents ( ) { example . put ( "jonDoe" , createAddress ( "Dallas" 6 , "Dallas" 1 , State . OREGON , "randyHandy" 1 ) ) ; example . put ( "Dallas" 9 , createAddress ( "Dallas" 3 , "Missoula" , State . MONTANA , "12345" ) ) ; example . put ( "janeDoe" , createAddress ( "Dallas" 6 , "Dallas" 1 , State . OREGON , "ran... | org . junit . Assert . assertEquals ( org . spring . data . gemfire . cache . ClientCacheContinuousQueriesTest . EXPECTED_COUNT , org . spring . data . gemfire . cache . ClientCacheContinuousQueriesTest . COUNTER . get ( ) ) |
shouldBeRelatedToEdgeIdWhenDestinationAndVertexAreNull ( ) { final java . lang . String source = "source" ; final java . lang . String destination = null ; final uk . gov . gchq . gaffer . data . element . id . EntityId seed = new uk . gov . gchq . gaffer . operation . data . EntitySeed ( destination ) ; final uk . gov... | org . junit . Assert . assertTrue ( isRelated ) |
testGetNoLoginEmailPage ( ) { "<AssertPlaceHolder>" ; } noLoginResetPassword ( org . springframework . ui . Model ) { return ca . corefacility . bioinformatics . irida . ria . web . PasswordResetController . CREATE_RESET_PAGE ; } | org . junit . Assert . assertEquals ( PasswordResetController . CREATE_RESET_PAGE , controller . noLoginResetPassword ( null ) ) |
testPrerelatieWelTonenDatumAanvangVoorDatumEindeGeldigheidHuwelijk ( ) { final nl . bzk . brp . domain . element . GroepElement groepElementSamenGesteldeNaam = getGroepElement ( Element . GERELATEERDEHUWELIJKSPARTNER_PERSOON_SAMENGESTELDENAAM ) ; final nl . bzk . brp . domain . element . GroepElement groepElementGeboor... | org . junit . Assert . assertFalse ( prerelatieRecords . contains ( record ) ) |
testDeleteMessages ( ) { sut . deleteMessages ( testId , org . eurekastreams . server . service . opensocial . spi . MessageServiceTest . TEST_MESSAGE_COLL_ID , new java . util . ArrayList < java . lang . String > ( ) , org . eurekastreams . server . service . opensocial . spi . MessageServiceTest . FAKETOKEN ) ; "<Ass... | org . junit . Assert . assertTrue ( true ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . document . library . kernel . model . DLFileShortcut . class , _dynamicQueryClassLoader ) ; dynamicQuery ... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
testWritesAreActuallyWritten ( ) { int size = 7 ; assert size < ( buffer . capacity ( ) ) ; byte [ ] written = new byte [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { written [ i ] = ( ( byte ) ( i ) ) ; } buffer . clear ( ) ; buffer . put ( written ) ; buffer . clear ( ) ; channel . write ( buffer , testPosition ) ;... | org . junit . Assert . assertTrue ( java . util . Arrays . equals ( written , read ) ) |
testSimpleInEquality1 ( ) { com . github . davidmoten . rtree . geometry . Rectangle r = com . github . davidmoten . rtree . geometry . Geometries . rectangle ( 0 , 0 , 2 , 1 ) ; com . github . davidmoten . rtree . geometry . Rectangle r2 = com . github . davidmoten . rtree . geometry . Geometries . rectangle ( 0 , 0 ,... | org . junit . Assert . assertFalse ( r . equals ( r2 ) ) |
validationOnCommitAfterInsert ( ) { com . buschmais . xo . api . XOManager xoManager = getXOManager ( ) ; xoManager . currentTransaction ( ) . begin ( ) ; com . puresoltechnologies . ductiledb . xo . test . validation . A a = xoManager . create ( com . puresoltechnologies . ductiledb . xo . test . validation . A . clas... | org . junit . Assert . assertThat ( constraintViolations . size ( ) , org . hamcrest . Matchers . equalTo ( 2 ) ) |
testKeyGroupRangeOffsetsBasics ( ) { testKeyGroupRangeOffsetsBasicsInternal ( 0 , 0 ) ; testKeyGroupRangeOffsetsBasicsInternal ( 0 , 1 ) ; testKeyGroupRangeOffsetsBasicsInternal ( 1 , 2 ) ; testKeyGroupRangeOffsetsBasicsInternal ( 42 , 42 ) ; testKeyGroupRangeOffsetsBasicsInternal ( 3 , 7 ) ; testKeyGroupRangeOffsetsBa... | org . junit . Assert . assertEquals ( ( i + 1 ) , testNoGivenOffsets . getKeyGroupOffset ( i ) ) |
testLoadDataFromClasspath ( ) { boolean success = no . bekk . bekkopen . mail . MailDataLoader . loadFromClassPath ( ) ; "<AssertPlaceHolder>" ; } loadFromClassPath ( ) { boolean success = false ; java . io . InputStream is = null ; try { is = no . bekk . bekkopen . mail . MailDataLoader . class . getResourceAsStream (... | org . junit . Assert . assertTrue ( success ) |
shouldHandleOffsetTime ( ) { final java . time . OffsetTime o = java . time . OffsetTime . now ( ) ; "<AssertPlaceHolder>" ; } serializeDeserialize ( java . lang . Object , java . lang . Class ) { final org . apache . tinkerpop . shaded . kryo . Kryo kryo = builder . get ( ) . create ( ) . createMapper ( ) ; try ( fina... | org . junit . Assert . assertEquals ( o , serializeDeserialize ( o , java . time . OffsetTime . class ) ) |
testDerivedColumnGetNameNoQuotes ( ) { org . sagebionetworks . table . query . model . DerivedColumn element = org . sagebionetworks . table . query . util . SqlElementUntils . createDerivedColumn ( "no_space" ) ; "<AssertPlaceHolder>" ; } getDisplayName ( ) { java . lang . String name = null ; if ( ( asClause ) != nul... | org . junit . Assert . assertEquals ( "no_space" , element . getDisplayName ( ) ) |
testResetBuffer ( ) { final java . util . concurrent . atomic . AtomicBoolean calledResetBufferReference = new java . util . concurrent . atomic . AtomicBoolean ( ) ; com . liferay . portal . kernel . servlet . StubHttpServletResponse stubHttpServletResponse = new com . liferay . portal . kernel . servlet . StubHttpSer... | org . junit . Assert . assertTrue ( calledResetBufferReference . get ( ) ) |
whenCommitted_thenClosedCommitBarrierException ( ) { barrier = new org . multiverse . commitbarriers . CountDownCommitBarrier ( 0 ) ; try { barrier . abort ( ) ; org . junit . Assert . fail ( ) ; } catch ( org . multiverse . commitbarriers . CommitBarrierOpenException expected ) { } "<AssertPlaceHolder>" ; } isCommitte... | org . junit . Assert . assertTrue ( barrier . isCommitted ( ) ) |
hashIndexTable_add_overwritesPreviousValue ( ) { org . eclipse . rap . json . JsonObject . HashIndexTable indexTable = new org . eclipse . rap . json . JsonObject . HashIndexTable ( ) ; indexTable . add ( "name" , 23 ) ; indexTable . add ( "name" , 42 ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { return ... | org . junit . Assert . assertEquals ( 42 , indexTable . get ( "name" ) ) |
obtainCoveragePlanForNonExistingData ( ) { final com . basho . riak . client . api . RiakClient client = new com . basho . riak . client . api . RiakClient ( cluster ) ; java . lang . String query = ( ( ( ( ( "select<sp>*<sp>from<sp>" + ( tableName ) ) + "<sp>where<sp>time<sp>><sp>" ) + ( ( com . basho . riak . client ... | org . junit . Assert . assertEquals ( 6 , lst . size ( ) ) |
testBuildWithDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . subject . Subject context = new org . lnu . is . domain . subject . Subject ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>Subject<sp>e<sp>WHERE<sp>e.status=:status<sp>" ; org . lnu . is . paginati... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
vcal_timezone_standard_two_dates ( ) { biweekly . ICalendar ical = new biweekly . ICalendar ( ) ; ical . getProperties ( ) . clear ( ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-01-07<sp>09:34:00" ) ) ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-02-07<sp>09:34... | org . junit . Assert . assertEquals ( expected , actual ) |
testUpperBoundWithPrefixWithoutValue ( ) { ca . uhn . fhir . rest . api . QualifiedParamList qualifiedParamList = new ca . uhn . fhir . rest . api . QualifiedParamList ( 1 ) ; qualifiedParamList . add ( "lt" ) ; java . util . List < ca . uhn . fhir . rest . api . QualifiedParamList > params = new java . util . ArrayLis... | org . junit . Assert . assertTrue ( dateRangeParam . isEmpty ( ) ) |
testReadAndWrite ( ) { org . qcri . rheem . tests . List < java . lang . String > collector = new org . qcri . rheem . tests . LinkedList ( ) ; org . qcri . rheem . core . plan . rheemplan . RheemPlan rheemPlan = org . qcri . rheem . tests . RheemPlans . readWrite ( RheemPlans . FILE_SOME_LINES_TXT , collector ) ; org ... | org . junit . Assert . assertEquals ( lines , collector ) |
testErrorMessageSerialization ( ) { com . google . cloud . teleport . templates . common . ErrorConverters . ErrorMessage errorMessage = com . google . cloud . teleport . templates . common . ErrorConverters . ErrorMessage . newBuilder ( ) . setMessage ( "Some<sp>Message" ) . setData ( "data<sp>234,<sp>2" ) . build ( )... | org . junit . Assert . assertEquals ( dupErrorMessage , errorMessage ) |
testServiceLookup ( ) { java . lang . String pc = skm . getPublicKeyCertificate ( ) ; "<AssertPlaceHolder>" ; } getPublicKeyCertificate ( ) { if ( ( serverKeyDescriptor ) != null ) { return serverKeyDescriptor . externalPublicCertificate ; } return null ; } | org . junit . Assert . assertNotNull ( pc ) |
testSegmentedReverse ( ) { com . github . pfichtner . jrunalyser . base . data . track . Track track = toDefault ( loadTrack ( ) ) ; com . github . pfichtner . jrunalyser . base . data . track . Track rev1 = com . github . pfichtner . jrunalyser . base . data . track . Tracks . reverse ( track ) ; com . github . pficht... | org . junit . Assert . assertEquals ( track , rev2 ) |
testSchemaImport2 ( ) { java . io . File file = new java . io . File ( tests . Resources . asURI ( "importBase.xsd" ) ) ; javax . xml . parsers . DocumentBuilderFactory documentBuilderFactory = javax . xml . parsers . DocumentBuilderFactory . newInstance ( ) ; documentBuilderFactory . setNamespaceAware ( true ) ; org .... | org . junit . Assert . assertNotNull ( schema ) |
testComposeStringToSignNullQueries ( ) { com . aliyuncs . auth . ISignatureComposer composer = com . aliyuncs . auth . OssSignatureComposer . getComposer ( ) ; com . aliyuncs . http . MethodType methodType = com . aliyuncs . http . MethodType . GET ; java . lang . String uriPattern = "XML" 4 ; com . aliyuncs . auth . S... | org . junit . Assert . assertEquals ( expected , stringToSign ) |
testGetChecked ( ) { org . eclipse . nebula . widgets . grid . GridItem item = new org . eclipse . nebula . widgets . grid . GridItem ( grid , org . eclipse . swt . SWT . NONE ) ; item . setChecked ( true ) ; "<AssertPlaceHolder>" ; } getChecked ( ) { checkWidget ( ) ; return getChecked ( 0 ) ; } | org . junit . Assert . assertTrue ( item . getChecked ( ) ) |
clipBottomTest ( ) { org . eclipse . swt . graphics . Rectangle bounds = new org . eclipse . swt . graphics . Rectangle ( 0 , 0 , 1000 , 1000 ) ; int x0 = 100 ; int y0 = - 100 ; int x1 = 100 ; int y1 = 1000 ; org . eclipse . swt . graphics . Rectangle rect = org . eclipse . tracecompass . internal . tmf . ui . util . L... | org . junit . Assert . assertEquals ( new org . eclipse . swt . graphics . Rectangle ( 100 , 0 , 0 , 1000 ) , rect ) |
testGetKeyName ( ) { java . lang . String name = "name" ; when ( delegate . getKeyName ( ) ) . thenReturn ( name ) ; "<AssertPlaceHolder>" ; } getKeyName ( ) { return delegate . getKeyName ( ) ; } | org . junit . Assert . assertEquals ( name , mapping . getKeyName ( ) ) |
testGetExpirationFromMessageWithNoTTLInHeaderOrExpirationInProperties ( ) { 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 . ... | org . junit . Assert . assertEquals ( 0 , decoded . getExpiration ( ) ) |
testTestFile ( ) { java . lang . String file = testFile . getCanonicalPath ( ) ; com . wipro . ats . bdre . flume . sink . hdfs . HDFSDataStream stream = new com . wipro . ats . bdre . flume . sink . hdfs . HDFSDataStream ( ) ; context . put ( "hdfs.useRawLocalFileSystem" , "true" ) ; stream . configure ( context ) ; s... | org . junit . Assert . assertTrue ( ( ( testFile . length ( ) ) > 0 ) ) |
testGetInt ( ) { org . teiid . core . util . Properties p = new org . teiid . core . util . Properties ( ) ; p . setProperty ( "prop" , "0<sp>" ) ; "<AssertPlaceHolder>" ; } getIntProperty ( java . util . Properties , java . lang . String , int ) { java . lang . String stringVal = props . getProperty ( propName ) ; if ... | org . junit . Assert . assertEquals ( org . teiid . core . util . PropertiesUtils . getIntProperty ( p , "prop" , ( - 1 ) ) , 0 ) |
testRetrySomething ( ) { int count = this . retryTestService . saySomething ( ) ; "<AssertPlaceHolder>" ; } saySomething ( ) { java . lang . String dateStr = org . onetwo . common . date . DateUtils . nowString ( ) ; if ( true ) { System . out . println ( ( ( dateStr + ":<sp>error<sp>count:<sp>" ) + ( count ) ) ) ; ( c... | org . junit . Assert . assertEquals ( 3 , count ) |
testSerializeAndDeserialize ( ) { org . apache . rocketmq . serializer . impl . RocketMQStringSerializer stringSerializer = new org . apache . rocketmq . serializer . impl . RocketMQStringSerializer ( ) ; java . lang . String obj = new java . lang . String ( "hello<sp>rocket!" ) ; byte [ ] result = stringSerializer . s... | org . junit . Assert . assertEquals ( obj , stringDeserializer . deserialize ( result ) ) |
should_return_all_nodes ( ) { for ( int i = 2 ; i < 10 ; i ++ ) { scambler . StringGraphTransitiveCompressor trit = new scambler . StringGraphTransitiveCompressor ( new scambler . StreamingStringGraphIterator ( 10 , 200 , 30 , overlapping ( i , 30 , 10 ) . iterator ( ) , getContext ( ) . getLinear ( ) ) , 0 , false ) ;... | org . junit . Assert . assertEquals ( ( 2 * i ) , result . size ( ) ) |
testBondNotStereo4 ( ) { org . openscience . cdk . isomorphism . matchers . Expr expr = new org . openscience . cdk . isomorphism . matchers . Expr ( NOT , new org . openscience . cdk . isomorphism . matchers . Expr ( OR , new org . openscience . cdk . isomorphism . matchers . Expr ( TRUE ) , new org . openscience . cd... | org . junit . Assert . assertFalse ( expr . matches ( bond ) ) |
testStartup ( ) { when ( systemConfig . getProperty ( "system.enable-async-default-content-loading" ) ) . thenReturn ( "false" ) ; when ( appContext . getSolutionPath ( "system/default-content" ) ) . thenReturn ( ( ( org . pentaho . test . platform . utils . TestResourceLocation . TEST_RESOURCES ) + "/SystemConfig/syst... | org . junit . Assert . assertTrue ( startup ) |
testFindContract ( ) { fr . gouv . vitam . common . thread . VitamThreadUtils . getVitamSession ( ) . setTenantId ( fr . gouv . vitam . functional . administration . common . server . MongoDbAccessAdminImplTest . TENANT_ID ) ; final fr . gouv . vitam . functional . administration . common . server . FunctionalAdminColl... | org . junit . Assert . assertEquals ( "aName" , foundContract . getString ( IngestContract . NAME ) ) |
testDisableMarkupIsIgnored ( ) { tree . setData ( RWT . MARKUP_ENABLED , Boolean . TRUE ) ; tree . setData ( RWT . MARKUP_ENABLED , Boolean . FALSE ) ; "<AssertPlaceHolder>" ; } getData ( java . lang . String ) { if ( ( dataTable ) == null ) return null ; return ( ( java . lang . String ) ( dataTable . get ( key ) ) ) ... | org . junit . Assert . assertEquals ( Boolean . TRUE , tree . getData ( RWT . MARKUP_ENABLED ) ) |
testWithOOPath ( ) { final java . lang . String drl = ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . testcoverage . common . model . Person . class . getCanonicalName ( ) ) ) + "\n" ) + "import<sp>" ) + ( org . drools . compiler . integrationtests . RuleUnitTest . AdultUnit . class . getCanonicalName ( ) ) ) + "\n" ... | org . junit . Assert . assertEquals ( 2 , executor . run ( adultUnit ) ) |
testAMRestartNotLostContainerCompleteMsg ( ) { org . apache . hadoop . yarn . conf . YarnConfiguration conf = new org . apache . hadoop . yarn . conf . YarnConfiguration ( ) ; conf . setInt ( YarnConfiguration . RM_AM_MAX_ATTEMPTS , 2 ) ; org . apache . hadoop . yarn . server . resourcemanager . MockRM rm1 = new org . ... | org . junit . Assert . assertFalse ( newAttemptId . equals ( am1 . getApplicationAttemptId ( ) ) ) |
selectUnique ( ) { org . eclipse . collections . api . bag . MutableBag < java . lang . String > bag = this . newWith ( "0" , "1" , "1" , "1" , "1" , "2" , "2" , "2" , "3" , "3" , "4" , "5" ) ; org . eclipse . collections . api . set . MutableSet < java . lang . String > expected = Sets . mutable . with ( "0" , "4" , "... | org . junit . Assert . assertEquals ( expected , actual ) |
testImageUri ( ) { com . sap . core . odata . ref . model . Employee employee1 = new com . sap . core . odata . ref . model . Employee ( 1 , null ) ; employee1 . setImageUri ( com . sap . core . odata . ref . model . EmployeeTest . VALUE_URI ) ; "<AssertPlaceHolder>" ; } getImageUri ( ) { return imageUrl ; } | org . junit . Assert . assertEquals ( com . sap . core . odata . ref . model . EmployeeTest . VALUE_URI , employee1 . getImageUri ( ) ) |
testOutputStreamAppenderToByteArrayOutputStream ( ) { final java . io . OutputStream out = new java . io . ByteArrayOutputStream ( ) ; final java . lang . String name = getName ( out ) ; final org . apache . logging . log4j . Logger logger = org . apache . logging . log4j . LogManager . getLogger ( name ) ; addAppender... | org . junit . Assert . assertTrue ( actual , actual . contains ( org . apache . logging . log4j . core . appender . OutputStreamAppenderTest . TEST_MSG ) ) |
testCuboidCounts1 ( ) { org . apache . kylin . cube . model . CubeDesc cube = getTestKylinCubeWithoutSeller ( ) ; int [ ] counts = org . apache . kylin . cube . cuboid . CuboidCLI . calculateAllLevelCount ( cube ) ; printCount ( counts ) ; "<AssertPlaceHolder>" ; } printCount ( int [ ] ) { int sum = 0 ; for ( int c : c... | org . junit . Assert . assertArrayEquals ( new int [ ] { 1 , 4 , 6 , 6 , 4 , 4 , 2 , 0 } , counts ) |
shouldNotInstrumentSameLineTwice ( ) { java . lang . String source = "var<sp>x,y;\nx<sp>=<sp>1;y<sp>=<sp>x<sp>*<sp>1;" ; java . lang . String instrumentedSource = sourceProcessor . instrumentSource ( source ) ; java . lang . String expectedSource = "_$jscoverage[\'test.js\'].lineData[1]++;\nvar<sp>x,<sp>y;\n_$jscoverag... | org . junit . Assert . assertEquals ( expectedSource , instrumentedSource ) |
testUsernameTokenTextUnknownUser ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . secur... | org . junit . Assert . assertTrue ( ex . getMessage ( ) . contains ( error ) ) |
sameParsedJexlNodeEquality ( ) { org . apache . commons . jexl2 . parser . ASTJexlScript one = datawave . query . jexl . JexlASTHelper . parseJexlQuery ( "FOO<sp>==<sp>'1'" ) ; org . apache . commons . jexl2 . parser . ASTJexlScript two = datawave . query . jexl . JexlASTHelper . parseJexlQuery ( "FOO<sp>==<sp>'1'" ) ;... | org . junit . Assert . assertTrue ( datawave . query . jexl . JexlASTHelper . equals ( one , two ) ) |
testDeclaredSlidingWindowWithEntryPoint ( ) { java . lang . String str = ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . modelcompiler . domain . StockTick . class . getCanonicalName ( ) ) ) + ";\n" ) + "<sp>System.out.println($a.getCompany());\n" 0 ) + "<sp>StockTick(<sp>company<sp>==<sp>\"DROO\"<sp>System.out.print... | org . junit . Assert . assertEquals ( 2 , ksession . fireAllRules ( ) ) |
testStringInjectRoundTrip ( ) { final org . apache . reef . tang . JavaConfigurationBuilder cb = Tang . Factory . getTang ( ) . newConfigurationBuilder ( ) ; cb . bindSetEntry ( org . apache . reef . tang . SetOfStrings . class , "four" ) ; cb . bindSetEntry ( org . apache . reef . tang . SetOfStrings . class , "five" ... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetOldValue ( ) { tlsContext . setServerRandom ( new byte [ ] { 3 } ) ; action . execute ( state ) ; "<AssertPlaceHolder>" ; } getOldValue ( ) { return oldValue ; } | org . junit . Assert . assertArrayEquals ( action . getOldValue ( ) , new byte [ ] { 3 } ) |
isResizingRequired_ExistingCPUEqualsCountCPU ( ) { paramHandler . setCountCPU ( java . lang . Integer . toString ( org . oscm . app . iaas . VSystemProcessorBeanTest . ONE ) ) ; org . oscm . app . iaas . data . VServerConfiguration server = givenVServerConfiguration ( java . lang . Integer . toString ( org . oscm . app... | org . junit . Assert . assertNull ( result ) |
testConvertAll ( ) { java . lang . Long enrolmentId = 1L ; org . lnu . is . domain . enrolment . Enrolment enrolment = new org . lnu . is . domain . enrolment . Enrolment ( ) ; enrolment . setId ( enrolmentId ) ; java . lang . Long benefitId = 2L ; org . lnu . is . domain . benefit . Benefit benefit = new org . lnu . i... | org . junit . Assert . assertEquals ( expecteds , actuals ) |
testStringData3 ( ) { final int count = 100000 ; final org . drools . core . util . ObjectHashMap map = new org . drools . core . util . ObjectHashMap ( ) ; "<AssertPlaceHolder>" ; for ( int idx = 0 ; idx < count ; idx ++ ) { final java . lang . String key = "key" + idx ; final java . lang . String strval = "value" + i... | org . junit . Assert . assertNotNull ( map ) |
readWhenUseBigDecimalForFloats ( ) { final java . lang . String json = "[1.5]" ; final java . util . List < java . lang . Object > expected = new java . util . ArrayList < java . lang . Object > ( ) ; expected . add ( new java . math . BigDecimal ( 1.5 ) ) ; final java . util . Collection < java . lang . Object > read ... | org . junit . Assert . assertEquals ( expected , read ) |
testShuffle ( ) { double [ ] a = new double [ 100 ] ; for ( int i = a . length ; ( i -- ) != 0 ; ) a [ i ] = i ; double [ ] [ ] b = it . unimi . dsi . fastutil . doubles . DoubleBigArrays . wrap ( a ) ; it . unimi . dsi . fastutil . doubles . DoubleBigArrays . shuffle ( b , new java . util . Random ( ) ) ; boolean [ ] ... | org . junit . Assert . assertFalse ( c [ ( ( int ) ( it . unimi . dsi . fastutil . doubles . DoubleBigArrays . get ( b , i ) ) ) ] ) |
toNodeRole ( ) { org . batfish . coordinator . resources . NodeRoleBean roleBean = new org . batfish . coordinator . resources . NodeRoleBean ( new org . batfish . role . NodeRole ( "name" , "a.*" ) , com . google . common . collect . ImmutableSet . of ( "a" , "b" ) ) ; org . batfish . role . NodeRole role = roleBean .... | org . junit . Assert . assertThat ( role , org . hamcrest . Matchers . equalTo ( new org . batfish . role . NodeRole ( "name" , "a.*" ) ) ) |
isPathWithinSubtree_samePrefix ( ) { org . apache . hadoop . fs . Path path = new org . apache . hadoop . fs . Path ( "/somedir1" ) ; org . apache . hadoop . fs . Path subtree = new org . apache . hadoop . fs . Path ( "/somedir" ) ; "<AssertPlaceHolder>" ; } isPathWithinSubtree ( org . apache . hadoop . fs . Path , org... | org . junit . Assert . assertFalse ( org . apache . hadoop . hive . common . FileUtils . isPathWithinSubtree ( path , subtree ) ) |
testConfiguration ( ) { final java . net . URL url = com . sap . core . odata . testutil . fit . Log4JConfigurationTest . class . getResource ( "/log4j.xml" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( url ) |
testContainsWithEarlier ( ) { au . gov . ga . earthsci . core . temporal . BigTime start = new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 1000 ) ) ; au . gov . ga . earthsci . core . temporal . BigTime end = new au . gov . ga . earthsci . core . temporal . BigTime ( java... | org . junit . Assert . assertFalse ( period1 . contains ( test ) ) |
testFromStateWithoutServerLocation ( ) { org . kie . server . services . impl . storage . KieServerState state = repo . load ( org . kie . server . controller . openshift . storage . ServerTemplateConverterTest . TEST_KIE_SERVER_ID ) ; org . kie . server . api . model . KieServerConfigItem cfgItem = state . getConfigur... | org . junit . Assert . assertTrue ( org . kie . server . controller . openshift . storage . ServerTemplateConverterTest . isMatching ( template , state ) ) |
testSomeValueStatement ( ) { org . wikidata . wdtk . datamodel . interfaces . ItemIdValue i = org . wikidata . wdtk . datamodel . interfaces . ItemIdValue . NULL ; org . wikidata . wdtk . datamodel . interfaces . PropertyIdValue p = org . wikidata . wdtk . datamodel . interfaces . PropertyIdValue . NULL ; org . wikidat... | org . junit . Assert . assertEquals ( stmt1 , stmt2 ) |
testRecentConnections ( ) { final java . lang . String id = "foo" ; expect ( recentConnections . getRecentConnections ( com . db4o . omplus . ui . dialog . login . model . test . ConnectionPresentationModelTestCase . MockConnectionParams . class ) ) . andReturn ( com . db4o . omplus . ui . dialog . login . model . test... | org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { id } , model . recentConnections ( ) ) |
testTreePermissionIsGranted ( ) { org . apache . jackrabbit . oak . spi . security . authorization . permission . TreePermission parentPermission = org . apache . jackrabbit . oak . spi . security . authorization . permission . TreePermission . EMPTY ; for ( java . lang . String path : TP_PATHS ) { org . apache . jackr... | org . junit . Assert . assertTrue ( tp . isGranted ( toTest ) ) |
testListaDescuentos ( ) { log . debug ( "Debiera<sp>mostrar<sp>lista<sp>de<sp>Descuentos" ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . inscripciones . model . Descuento descuento = null ; mx . edu . um . mateo . general . model . Organizacion organizacion ... | org . junit . Assert . assertNotNull ( descuento . getId ( ) ) |
voteAgainstRemoval ( ) { org . easymock . EasyMock . expect ( mock . voteForRemoval ( "Document" ) ) . andReturn ( ( ( byte ) ( - 42 ) ) ) ; replayAll ( ) ; classUnderTest . addDocument ( "Document" , "content" ) ; "<AssertPlaceHolder>" ; verifyAll ( ) ; } removeDocument ( java . lang . String ) { if ( ! ( documents . ... | org . junit . Assert . assertFalse ( classUnderTest . removeDocument ( "Document" ) ) |
testCompareEqualsAscending ( ) { com . liferay . portal . workflow . web . internal . util . comparator . WorkflowDefinitionModifiedDateComparator comparator = new com . liferay . portal . workflow . web . internal . util . comparator . WorkflowDefinitionModifiedDateComparator ( true ) ; java . util . Calendar calendar... | org . junit . Assert . assertEquals ( 0 , result ) |
cloneTest ( ) { loadMockStatements ( parentStore , 50 , new java . util . Date ( ( ( org . apache . rya . indexing . export . StoreToStoreIT . currentDate . getTime ( ) ) + 10000L ) ) ) ; final org . apache . rya . export . client . merge . MemoryTimeMerger merger = new org . apache . rya . export . client . merge . Me... | org . junit . Assert . assertEquals ( 50 , count ( childStore ) ) |
pattern ( ) { java . util . Properties properties = new java . util . Properties ( ) ; properties . put ( ( ( ( SpringBeansConfig . SPRING_BEANS_PREFIX ) + 1 ) + ( SpringBeansConfig . SPRING_BEANS_NAME_PATTERN_POSTFIX ) ) , "Target.*" ) ; properties . put ( ( ( ( SpringBeansConfig . SPRING_BEANS_PREFIX ) + 1 ) + ( Spri... | org . junit . Assert . assertEquals ( 3 , springBeansConfig . getTargets ( ) . size ( ) ) |
testUsersEnvSource ( ) { Map . Entry < java . lang . String , java . lang . String > entry = java . lang . System . getenv ( ) . entrySet ( ) . iterator ( ) . next ( ) ; org . eclipse . microprofile . config . spi . ConfigBuilder builder = org . eclipse . microprofile . config . spi . ConfigProviderResolver . instance ... | org . junit . Assert . assertEquals ( entry . getValue ( ) , actual ) |
multiplesOf3And5Test ( ) { sio2box . it . testclasses . BenchmarkTestClass benchmarkTestClass = new sio2box . it . testclasses . BenchmarkTestClass ( ) ; benchmarkTestClass . multiplesOf3And5 ( ) ; "<AssertPlaceHolder>" ; } getBytes ( ) { return sio2box . api . ThreadTrackingContext . getThreadContext ( ) . getBytesUse... | org . junit . Assert . assertEquals ( 0 , sio2box . api . ThreadTrackingContext . getBytes ( ) ) |
testM_whenMoreLikeThisSearchOnProductNameAndDescription_thenCorrectMatchesInOrder ( ) { java . util . List < com . baeldung . hibernatesearch . model . Product > expected = products ; java . util . List < java . lang . Object [ ] > resultsWithScore = dao . searchProductNameAndDescriptionByMoreLikeThisQuery ( products .... | org . junit . Assert . assertThat ( results , contains ( expected . toArray ( ) ) ) |
testEqualsDifferentClass ( ) { org . bff . javampd . command . MPDCommand command = new org . bff . javampd . command . MPDCommand ( "command" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof org . bff . javampd . command . MPDCommand ) ) { ret... | org . junit . Assert . assertFalse ( command . equals ( new java . lang . String ( ) ) ) |
testStopFirst ( ) { org . apache . hadoop . fs . shell . find . And and = new org . apache . hadoop . fs . shell . find . And ( ) ; org . apache . hadoop . fs . shell . PathData pathData = mock ( org . apache . hadoop . fs . shell . PathData . class ) ; org . apache . hadoop . fs . shell . find . Expression first = moc... | org . junit . Assert . assertEquals ( Result . STOP , and . apply ( pathData ) ) |
testDayOfMonthOverflows ( ) { for ( int i = 1 ; i <= ( this . getNumMonthsInYear ( ) ) ; i ++ ) { sample . withMonthOfYear ( i ) . withDayOfMonth ( this . getNumDaysInMonth ( i ) ) ; boolean exThrown = false ; try { sample . withMonthOfYear ( i ) . withDayOfMonth ( ( ( this . getNumDaysInMonth ( i ) ) + 1 ) ) ; } catch... | org . junit . Assert . assertTrue ( exThrown ) |
connectionProviderInConfigWithInvalidConnection ( ) { org . mule . runtime . api . connection . ConnectionValidationResult connectionResult = testConnectivityWithConnectionProvider ( false ) ; "<AssertPlaceHolder>" ; } isValid ( ) { java . lang . String expression = "2*2" ; org . junit . Assert . assertThat ( expressio... | org . junit . Assert . assertThat ( connectionResult . isValid ( ) , org . hamcrest . core . Is . is ( false ) ) |
testCreateInstance ( ) { com . huawei . streaming . cql . executor . windowcreater . WindowCreator creater = new com . huawei . streaming . cql . executor . windowcreater . LengthSlideWindowCreator ( ) ; creater . createInstance ( createWindow ( ) , initSchema ( ) , null ) ; "<AssertPlaceHolder>" ; } initSchema ( ) { j... | org . junit . Assert . assertTrue ( true ) |
testPositionalWithNull ( ) { java . lang . String str = "end" 2 + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>value<sp>:<sp>String\n" + "end" 3 ) + "\n" ) + "rule<sp>\"Init\"\n" ) + "when\n" ) + "end" 0 ) + "end" 1 ) + "<sp>insert(<sp>\"test\"<sp>);\n" ) + "end" 3 ) + "\n" ) + "rule<sp>\"Bind\"\n" ) + "when\n" ) + "<sp>$s<sp>... | org . junit . Assert . assertEquals ( 2 , ksession . fireAllRules ( ) ) |
role ( ) { javax . security . idm . model . Grant grant = new javax . security . idm . model . Grant ( ) ; javax . security . idm . model . Role role = new javax . security . idm . model . Role ( "me" ) ; grant . setRole ( role ) ; "<AssertPlaceHolder>" ; } getRole ( ) { return role ; } | org . junit . Assert . assertSame ( role , grant . getRole ( ) ) |
testGetAreaProviderPropertyReturnsImageAreaPropertyWhenFound ( ) { java . util . Properties properties = createMock ( java . util . Properties . class ) ; expect ( properties . getProperty ( "imageMode" ) ) . andReturn ( null ) ; expect ( properties . getProperty ( "imageArea" ) ) . andReturn ( "dummy:foo" ) ; replay (... | org . junit . Assert . assertEquals ( de . lessvoid . nifty . render . image . ImageModeHelper . getAreaProviderProperty ( properties ) , "dummy:foo" ) |
testTrades ( ) { org . knowm . xchange . kucoin . KucoinExchange exchange = exchange ( ) ; org . knowm . xchange . dto . marketdata . Trades trades = exchange . getMarketDataService ( ) . getTrades ( ETH ) ; "<AssertPlaceHolder>" ; } getTrades ( ) { return trades ; } | org . junit . Assert . assertFalse ( trades . getTrades ( ) . isEmpty ( ) ) |
findUserById ( ) { com . apress . demo . User user = userRepository . findById ( "1" ) . get ( ) ; "<AssertPlaceHolder>" ; } findById ( java . lang . Integer ) { return todoRepository . findById ( id ) ; } | org . junit . Assert . assertNotNull ( user ) |
testSmallCluster ( ) { java . util . Map < java . lang . String , java . lang . Integer > rackToServerCount = new java . util . HashMap ( ) ; rackToServerCount . put ( "rack1" , 2 ) ; java . util . List < org . apache . hadoop . hbase . ServerName > servers = org . apache . hadoop . hbase . favored . TestFavoredNodeAss... | org . junit . Assert . assertFalse ( helper . canPlaceFavoredNodes ( ) ) |
testCreateProducer ( ) { java . lang . String msg = "Test" ; com . googlecode . mycontainer . jms . JMSDeployerTest . MyListener listener = new com . googlecode . mycontainer . jms . JMSDeployerTest . MyListener ( ) ; javax . jms . MessageConsumer consumer = session . createConsumer ( queue ) ; consumer . setMessageLis... | org . junit . Assert . assertEquals ( msg , listener . getMsg ( ) ) |
testShouldNotBeAbleToLocateByLinkTextMultipleElementsThatDoNotExist ( ) { driver . get ( pages . xhtmlTestPage ) ; java . util . List < org . openqa . selenium . WebElement > elements = driver . findElements ( org . openqa . selenium . By . linkText ( "Not<sp>here<sp>either" ) ) ; "<AssertPlaceHolder>" ; } size ( ) { j... | org . junit . Assert . assertThat ( elements . size ( ) , org . hamcrest . Matchers . is ( 0 ) ) |
testGetUsersFilterByCustomFieldWithEqualsAndStringTextType ( ) { com . liferay . expando . kernel . model . ExpandoColumn expandoColumn = _addExpandoColumn ( _expandoTable , com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) , ExpandoColumnConstants . STRING , ExpandoColumnConstants . IND... | org . junit . Assert . assertEquals ( 0 , count ) |
testRemoveByResponseId ( ) { org . kaaproject . kaa . client . persistence . KaaClientState clientState = org . mockito . Mockito . mock ( org . kaaproject . kaa . client . persistence . KaaClientState . class ) ; org . kaaproject . kaa . client . event . EventManager manager = org . mockito . Mockito . mock ( org . ka... | org . junit . Assert . assertTrue ( ( ( request . getEvents ( ) . size ( ) ) == 1 ) ) |
testBrown3 ( ) { cc . redberry . rings . poly . MultivariateRing < cc . redberry . rings . poly . multivar . MultivariatePolynomialZp64 > ring = MultivariateRingZp64 ( 5 , Zp64 ( 1048583 ) ) ; cc . redberry . rings . io . Coder < cc . redberry . rings . poly . multivar . MultivariatePolynomialZp64 , ? , ? > coder = cc ... | org . junit . Assert . assertEquals ( expected , BrownResultant ( a , b , 0 ) ) |
getNumberOfUsers ( ) { getIdentityAPI ( ) . createUser ( "jane" , "bpm" ) ; getIdentityAPI ( ) . createUser ( "paul" , "bpm" ) ; final long usersCount = getIdentityAPI ( ) . getNumberOfUsers ( ) ; "<AssertPlaceHolder>" ; getIdentityAPI ( ) . deleteUser ( "jane" ) ; getIdentityAPI ( ) . deleteUser ( "paul" ) ; } getNumb... | org . junit . Assert . assertEquals ( 2 , usersCount ) |
testSanitizeOpenBracketEscaped ( ) { java . lang . String testString = com . github . bordertech . wcomponents . WebUtilities . OPEN_BRACKET_ESCAPE ; "<AssertPlaceHolder>" ; } sanitize ( java . lang . String ) { return com . github . bordertech . wcomponents . util . HtmlSanitizerUtil . sanitize ( input , false ) ; } | org . junit . Assert . assertEquals ( testString , com . github . bordertech . wcomponents . util . HtmlSanitizerUtil . sanitize ( testString ) ) |
testEvenLowestPort ( ) { final int minimum = 2 ; final int maximum = 10 ; final org . restcomm . media . core . network . deprecated . PortManager portManager = new org . restcomm . media . core . network . deprecated . RtpPortManager ( minimum , maximum ) ; "<AssertPlaceHolder>" ; } getLowest ( ) { return this . minim... | org . junit . Assert . assertEquals ( minimum , portManager . getLowest ( ) ) |
testGetEmrClusterByIdNull ( ) { com . amazonaws . services . elasticmapreduce . model . Cluster cluster = emrDao . getEmrClusterById ( null , null ) ; "<AssertPlaceHolder>" ; } getEmrClusterById ( java . lang . String , org . finra . herd . model . dto . AwsParamsDto ) { com . amazonaws . services . elasticmapreduce . ... | org . junit . Assert . assertNull ( cluster ) |
testBuildWithParametersWithOrderBy ( ) { java . lang . String abbrName = "abb<sp>rname" ; java . lang . String name = "name" ; org . lnu . is . domain . admin . unit . type . AdminUnitType context = new org . lnu . is . domain . admin . unit . type . AdminUnitType ( ) ; context . setAbbrName ( abbrName ) ; context . se... | org . junit . Assert . assertEquals ( expected , actualQuery ) |
lookupUnsupported ( ) { org . eol . globi . domain . TaxonImage taxonImage = new org . eol . globi . server . WikiDataImageSearch ( ) . lookupImageForExternalId ( "foo:bar" ) ; "<AssertPlaceHolder>" ; } lookupImageForExternalId ( java . lang . String ) { return org . springframework . util . StringUtils . startsWithIgn... | org . junit . Assert . assertNull ( taxonImage ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.