input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testClientHelloLacksServerNameExtensionForNonRegisteredPeer ( ) { givenAClientHandshaker ( new java . net . InetSocketAddress ( java . net . InetAddress . getByAddress ( new byte [ ] { 10 , 0 , 0 , 1 } ) , 10000 ) , false ) ; handshaker . startHandshake ( ) ; org . eclipse . californium . scandium . dtls . ClientHello ...
org . junit . Assert . assertNull ( clientHello . getServerNameExtension ( ) )
testListObject2 ( ) { com . amazonaws . services . s3 . model . ObjectListing expected = new com . amazonaws . services . s3 . model . ObjectListing ( ) ; com . amazonaws . services . s3 . model . ListObjectsRequest request = new com . amazonaws . services . s3 . model . ListObjectsRequest ( ) . withBucketName ( org . ...
org . junit . Assert . assertEquals ( expected , actual )
testGetProcessDefinitionInvalidDeploymenId ( ) { "<AssertPlaceHolder>" ; org . jbpm . services . api . model . DeploymentUnit deploymentUnit = new org . jbpm . kie . services . impl . KModuleDeploymentUnit ( GROUP_ID , ARTIFACT_ID , VERSION ) ; deploymentService . deploy ( deploymentUnit ) ; units . add ( deploymentUni...
org . junit . Assert . assertNotNull ( deploymentService )
generateSwaggerSDKForInvalidLanguage_shouldNotGenerateSwaggerSDK ( ) { java . lang . String urlWithoutScheme = "http" ; java . lang . String language = "non-exist" ; java . lang . String basePath = "/ws/fhir" ; javax . servlet . http . HttpServletRequest request = new org . springframework . mock . web . MockHttpServle...
org . junit . Assert . assertNotNull ( swaggerSpecificationJSON )
testGenerateOperatorBean02 ( ) { java . lang . String operatorId = "op00" ; java . util . List < java . lang . String > projectedFields = java . util . Arrays . asList ( "c" , "a" , "b" ) ; edu . uci . ics . texera . textql . statements . predicates . ProjectSomeFieldsPredicate projectSomeFieldsPredicate = new edu . uc...
org . junit . Assert . assertEquals ( expectedProjectionBean , computedProjectionBean )
testExecuteInSequence ( ) { boolean b = aic . executeInSequence ( ) ; "<AssertPlaceHolder>" ; } executeInSequence ( ) { return true ; }
org . junit . Assert . assertTrue ( b )
testGlobalGapPenalties ( ) { for ( org . biojava . bio . alignment . AlignmentPair alignmentPair : align . global ( query , subject , gapPenalties ) ) { "<AssertPlaceHolder>" ; } } global ( org . biojava . bio . seq . Sequence , org . biojava . bio . seq . Sequence , org . nmdp . ngs . align . GapPenalties ) { return g...
org . junit . Assert . assertNotNull ( alignmentPair )
testRegisterClientDriver ( ) { org . apache . bookkeeper . meta . MetadataClientDriver clientDriver = mock ( org . apache . bookkeeper . meta . MetadataClientDriver . class ) ; when ( clientDriver . getScheme ( ) ) . thenReturn ( "testdriver" ) ; try { org . apache . bookkeeper . meta . MetadataDrivers . getClientDrive...
org . junit . Assert . assertEquals ( clientDriver . getClass ( ) , driver . getClass ( ) )
testComparatorList ( ) { org . evosuite . junit . naming . methods . GoalComparator comparator = new org . evosuite . junit . naming . methods . GoalComparator ( ) ; org . evosuite . coverage . method . MethodCoverageTestFitness goal1 = new org . evosuite . coverage . method . MethodCoverageTestFitness ( "FooClass" , "...
org . junit . Assert . assertEquals ( goal2 , goals . get ( 0 ) )
testApplication ( ) { info . batey . kafka . unit . KafkaUnit ku = kafkaUnitRule . getKafkaUnit ( ) ; java . lang . String topicName = "/META-INF/properties.xml" 2 ; ku . createTopic ( topicName , 1 ) ; java . lang . String [ ] words = "/META-INF/properties.xml" 5. split ( "\\s+" ) ; for ( java . lang . String word : w...
org . junit . Assert . assertEquals ( "/META-INF/properties.xml" 1 , wordsSet . size ( ) , rowCount )
matchWithNullValue ( ) { boolean check = org . jumbune . utils . PatternMatcher . match ( null , UtilitiesConstantsTestInterface . REGEX ) ; "<AssertPlaceHolder>" ; } match ( org . apache . hadoop . io . Writable , java . lang . String ) { if ( value == null ) { return false ; } java . lang . String valueStr = value . ...
org . junit . Assert . assertFalse ( check )
findByName ( ) { final org . feuyeux . jaxrs2 . atup . core . domain . AtupTestCase testCase = dao . findByName ( CreateTestCase . CASE_NAME ) ; "<AssertPlaceHolder>" ; } getCaseName ( ) { return caseName ; }
org . junit . Assert . assertEquals ( CreateTestCase . CASE_NAME , testCase . getCaseName ( ) )
testRemoveKeyFromNewMap_shouldRemoveEntry ( ) { java . util . Map < java . lang . String , java . lang . String > original = com . google . common . collect . ImmutableMap . of ( "foo" , "bar" , "test" , "42" ) ; java . util . Map < java . lang . String , java . lang . String > oldMap = com . google . common . collect ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( newMap ) )
testValid06 ( ) { org . terasoluna . gfw . web . token . transaction . TransactionToken token = new org . terasoluna . gfw . web . token . transaction . TransactionToken ( "" , "123" , "456" ) ; boolean valid = token . valid ( ) ; "<AssertPlaceHolder>" ; } valid ( ) { return false ; }
org . junit . Assert . assertFalse ( valid )
unreachedTime ( ) { "<AssertPlaceHolder>" ; } create ( ) { return new com . conveyal . r5 . otp2 . rangeraptor . transit . ReverseSearchTransitCalculator ( com . conveyal . r5 . otp2 . rangeraptor . transit . ReverseSearchTransitCalculatorTest . TRIP_SEARCH_BINARY_SEARCH_THRESHOLD , boardSlackInSeconds , latestArrivelT...
org . junit . Assert . assertEquals ( Integer . MAX_VALUE , create ( ) . unreachedTime ( ) )
testInit ( ) { final org . kie . workbench . common . dmn . client . editors . types . listview . DataTypeListItem listItem = mock ( org . kie . workbench . common . dmn . client . editors . types . listview . DataTypeListItem . class ) ; final elemental2 . dom . HTMLElement htmlElement = mock ( elemental2 . dom . HTML...
org . junit . Assert . assertEquals ( expectedDataTypeList , actualDataTypeList )
testSupportsUserUpdate ( ) { org . nuxeo . ecm . core . blob . BlobProvider blobProvider = blobManager . getBlobProvider ( org . nuxeo . ecm . liveconnect . dropbox . TestDropboxBlobProvider . PREFIX ) ; "<AssertPlaceHolder>" ; } supportsUserUpdate ( ) { return ! ( java . lang . Boolean . parseBoolean ( properties . ge...
org . junit . Assert . assertTrue ( blobProvider . supportsUserUpdate ( ) )
unlockExclusiveAndTakeWriteLockMustPreventExclusiveLocks ( ) { pageList . unlockExclusiveAndTakeWriteLock ( pageRef ) ; "<AssertPlaceHolder>" ; } tryExclusiveLock ( long ) { long s = org . neo4j . io . pagecache . impl . muninn . OffHeapPageLock . getState ( address ) ; boolean res = ( ( s & ( org . neo4j . io . pageca...
org . junit . Assert . assertFalse ( pageList . tryExclusiveLock ( pageRef ) )
testMaakInitieelBerichtResultaatGroepBericht ( ) { final nl . bzk . brp . model . bericht . ber . BerichtResultaatGroepBericht resultaatGroepBericht = antwoordBerichtFactory . maakInitieelBerichtResultaatGroepBericht ( null , null ) ; "<AssertPlaceHolder>" ; } maakInitieelBerichtResultaatGroepBericht ( nl . bzk . brp ....
org . junit . Assert . assertNotNull ( resultaatGroepBericht )
testInsertDataToDefaultGraph ( ) { java . lang . String queryStr = "PREFIX<sp>dc:<sp><http://purl.org/dc/elements/1.1/><sp>INSERT<sp>DATA<sp>{<sp>\n" + "<http://example/book1><sp>dc:title<sp>\"A<sp>new<sp>book\"<sp>;<sp>dc:creator<sp>\"A.N.Other\"<sp>.<sp>}" ; org . apache . clerezza . rdf . core . sparql . SparqlPrePa...
org . junit . Assert . assertTrue ( referredGraphs . toArray ( ) [ 0 ] . equals ( org . apache . clerezza . rdf . core . sparql . SparqlPreParserTest . DEFAULT_GRAPH ) )
testVer ( ) { log . debug ( "Debiera<sp>mostrar<sp>paquetes" ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . inscripciones . model . Paquete paquete = new mx . edu . um . mateo . inscripciones . model . Paquete ( ) ; paquete . setAcfe ( "a" ) ; paquete . setD...
org . junit . Assert . assertNotNull ( paquete )
testGetServiceFormarketplace_hasOneSubscription_login_False ( ) { container . login ( org . oscm . serviceprovisioningservice . bean . ServiceProvisioningServiceBeanGetServiceIT . customerUserKey2 , org . oscm . serviceprovisioningservice . bean . ROLE_ORGANIZATION_ADMIN ) ; org . oscm . internal . vo . VOServiceEntry ...
org . junit . Assert . assertFalse ( se . isSubscriptionLimitReached ( ) )
testGetPropertyClass_shouldReturnStringClass ( ) { pb . addProperty ( "test" , "42" ) ; "<AssertPlaceHolder>" ; } getPropertyClass ( java . lang . String ) { return properties . get ( key ) . getClass ( ) ; }
org . junit . Assert . assertTrue ( ( ( pb . getPropertyClass ( "test" ) ) == ( java . lang . String . class ) ) )
testInvite ( ) { com . riversoft . weixin . qy . contact . user . Invitation invitation = com . riversoft . weixin . qy . contact . Users . defaultUsers ( ) . invite ( "smooth" ) ; "<AssertPlaceHolder>" ; } invite ( java . lang . String ) { java . lang . String url = com . riversoft . weixin . qy . base . WxEndpoint . ...
org . junit . Assert . assertNotNull ( invitation )
testCheckByName ( ) { java . lang . String name1 = "alpha" ; java . lang . String name2 = "bravo" ; java . lang . String name3 = "charlie" ; org . oscarehr . common . model . Property property1 = new org . oscarehr . common . model . Property ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateT...
org . junit . Assert . assertEquals ( expectedResult , result )
testSendNotificationWithAppKeyWithSpecialCharacter2 ( ) { int erroCode = ErrorCodeEnum . NOERROR . value ( ) ; java . lang . String msgTitle = "jpush" ; java . lang . String msgContent = "jpush@" ; cn . jpush . api . MessageResult result = jpush . sendNotificationWithAppKey ( sendNo , msgTitle , msgContent ) ; "<Assert...
org . junit . Assert . assertEquals ( erroCode , result . getErrcode ( ) )
showCarbon_ErrorMarker ( ) { org . openscience . cdk . interfaces . IAtomContainer atomContainer = super . makeCCC ( ) ; org . openscience . cdk . interfaces . IAtom carbon = atomContainer . getAtom ( 1 ) ; org . openscience . cdk . validate . ProblemMarker . markWithError ( carbon ) ; "<AssertPlaceHolder>" ; } showCar...
org . junit . Assert . assertTrue ( generator . showCarbon ( carbon , atomContainer , model ) )
test_allInValidStringBuilderCode ( ) { org . terasoluna . gfw . common . codelist . Employee e = new org . terasoluna . gfw . common . codelist . Employee ( ) ; e . gender = new java . lang . StringBuilder ( "G" ) ; e . lang = new java . lang . StringBuilder ( "FR" ) ; java . util . Set < javax . validation . Constrain...
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
givenGeoPointData_whenExecutedGeoBoundingBoxQuery_thenResultNonEmpty ( ) { java . lang . String jsonObject = "{\"name\":\"Pyramids<sp>of<sp>Giza\",\"location\":[31.131302,29.976480]}" ; org . elasticsearch . action . index . IndexResponse response = client . prepareIndex ( com . baeldung . elasticsearch . GeoQueriesMan...
org . junit . Assert . assertTrue ( ids . contains ( pyramidsOfGizaId ) )
testMatchConnectionSameConnectioRequestInfoNotBound ( ) { javax . security . auth . Subject subject = null ; java . util . Set < org . apache . cxf . jca . core . resourceadapter . AbstractManagedConnectionImpl > connectionSet = new java . util . HashSet ( ) ; javax . resource . spi . ConnectionRequestInfo cri = new or...
org . junit . Assert . assertEquals ( con1 , mcon )
testAcceptWithMatchingExclusionPattern ( ) { com . codeaffine . osgi . testuite . internal . ClassnameFilter filter = new com . codeaffine . osgi . testuite . internal . ClassnameFilter ( "!.*Foo" ) ; boolean actual = filter . accept ( "com.codeaffine.Foo" ) ; "<AssertPlaceHolder>" ; } accept ( java . lang . String ) {...
org . junit . Assert . assertFalse ( actual )
shouldAllowMultipleOrderBeforeWithoutSave ( ) { int childCount = 2 ; javax . jcr . Node parent = session . getRootNode ( ) . addNode ( "parent" , "nt:unstructured" ) ; try { for ( int i = 0 ; i < childCount ; i ++ ) { parent . addNode ( ( "Child<sp>" + i ) , "nt:unstructured" ) ; } session . save ( ) ; long childIdx = ...
org . junit . Assert . assertEquals ( ( "Child<sp>" + childIdx ) , child . getName ( ) )
failTest ( ) { net . nikr . eve . jeveasset . io . local . SettingsTest . SettingsFactoryError factoryError = new net . nikr . eve . jeveasset . io . local . SettingsTest . SettingsFactoryError ( ) ; java . net . URL resource = net . nikr . eve . jeveasset . io . local . BackwardCompatibilitySettings . class . getResou...
org . junit . Assert . assertThat ( settings . isSettingsLoadError ( ) , org . hamcrest . Matchers . equalTo ( true ) )
testStoppedContainer ( ) { java . lang . String image = "image:ver" ; com . vmware . admiral . compute . container . ContainerDescriptionService . ContainerDescription containerDesc = new com . vmware . admiral . compute . container . ContainerDescriptionService . ContainerDescription ( ) ; containerDesc . image = imag...
org . junit . Assert . assertEquals ( PowerState . STOPPED , cs . powerState )
testBboxFilterWithEmptyAttributeName ( ) { org . opengis . filter . spatial . BBOX emptyAttNameFilter = ff . bbox ( "" , ( - 10 ) , ( - 10 ) , 10 , 10 , "EPSG:4326" ) ; java . lang . String typeName = org . geotools . arcsde . data . ArcSDEFeatureSourceTest . testData . getTempTableName ( ) ; org . geotools . data . si...
org . junit . Assert . assertTrue ( iterator . hasNext ( ) )
readData_FailedToParse ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( filereader . readAllLine ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( new java . lang . String [ ] { "14141z8436.923...
org . junit . Assert . assertEquals ( 0 , listUserEvent . size ( ) , 0 )
test_parse_instantZones_LDT ( java . time . format . DateTimeFormatter , java . lang . String , java . time . ZonedDateTime ) { java . time . temporal . TemporalAccessor actual = formatter . parse ( text ) ; "<AssertPlaceHolder>" ; } from ( java . time . temporal . TemporalAccessor ) { if ( temporal instanceof java . t...
org . junit . Assert . assertEquals ( java . time . LocalDateTime . from ( actual ) , expected . toLocalDateTime ( ) )
buildingFromVariableLengthByteArrayIndexedListTestLongUnsafe ( ) { final java . util . List < com . yandex . yoctodb . util . UnsignedByteArray > elements = new java . util . ArrayList ( ) ; elements . add ( com . yandex . yoctodb . util . UnsignedByteArrays . from ( 0L ) ) ; elements . add ( com . yandex . yoctodb . u...
org . junit . Assert . assertEquals ( puttedValue , list . getLongUnsafe ( i ) )
offerAndPollSingleValue ( ) { org . mule . runtime . core . internal . util . queue . QueueStore queue = createQueue ( ) ; queue . offer ( org . mule . tck . core . util . queue . QueueStoreTestCase . VALUE , 0 , org . mule . tck . core . util . queue . QueueStoreTestCase . OFFER_TIMEOUT ) ; java . io . Serializable re...
org . junit . Assert . assertThat ( ( ( java . lang . String ) ( result ) ) , org . hamcrest . core . Is . is ( org . mule . tck . core . util . queue . QueueStoreTestCase . VALUE ) )
qlNameEqualAndAgeEqual ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>WHERE<sp>name<sp>=<sp>'askagirl'<sp>and<sp>age<sp>=<sp>16<sp>LIMIT<sp>10" ; java . lang . String api = "select<sp>*<sp>where<sp>name<sp>=<sp>'askagirl'<sp>and<sp>age<sp>=<sp>16" ; org . apache . usergrid . query . validator . Qu...
org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) )
stopSession_getStopTime ( ) { target . startSession ( ) ; com . amazonaws . mobileconnectors . amazonmobileanalytics . internal . session . Session originalSession = target . getSession ( ) ; target . stopSession ( ) ; "<AssertPlaceHolder>" ; } getStopTime ( ) { return this . stopTime ; }
org . junit . Assert . assertTrue ( ( ( ( java . lang . System . currentTimeMillis ( ) ) - ( originalSession . getStopTime ( ) ) ) < 100 ) )
testClass ( ) { com . gigaspaces . document . SpaceDocument doc = new com . gigaspaces . document . SpaceDocument ( "classPropertyType" ) ; doc . setProperty ( "classProperty" , com . gigaspaces . persistency . qa . model . Priority . class ) ; doc = com . gigaspaces . persistency . metadata . MongoDocumentObjectConver...
org . junit . Assert . assertEquals ( com . gigaspaces . persistency . qa . model . Priority . class , c )
q_compare_nonexistant_field_returns_false ( ) { com . redhat . lightblue . query . QueryExpression q = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{<sp>'$and'<sp>:<sp>[{'field':'field1','regex':'Val.*','caseInsensitive':1},{'field':'field7.5.elemf1','op':'$eq','rvalue':'x'}]}" ) ; com...
org . junit . Assert . assertFalse ( ctx . getResult ( ) )
shouldGenerateIsNotNullPredicate ( ) { java . lang . String lhs = uniqueString ( ) ; java . lang . String actual = annis . sqlgen . SqlConstraints . isNotNull ( lhs ) ; java . lang . String expected = lhs + "<sp>IS<sp>NOT<sp>NULL" ; "<AssertPlaceHolder>" ; } isNotNull ( java . lang . String ) { return lhs + "<sp>IS<sp>...
org . junit . Assert . assertEquals ( expected , actual )
retainsStuffThatsNotComplexOptions ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--host" , "google.com" , "notta" , "--port=8080" , "option" , "--debug=true" } ; java . lang . String [ ] notoptions = new java . lang . String [ ] { "notta" , "option" } ; com . google . devtools . common . options...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( notoptions ) , java . util . Arrays . asList ( remainingArgs ) )
testUpdateLogicalSwitchPortException ( ) { resource . configure ( "NiciraNvpResource" , parameters ) ; doThrow ( new com . cloud . network . nicira . NiciraNvpApiException ( ) ) . when ( nvpApi ) . updateLogicalSwitchPortAttachment ( ( ( java . lang . String ) ( any ( ) ) ) , ( ( java . lang . String ) ( any ( ) ) ) , ...
org . junit . Assert . assertFalse ( dlspa . getResult ( ) )
deleteArchivedProcessInstanceAlsoDeleteArchivedElements ( ) { final org . bonitasoft . engine . bpm . process . ProcessDefinition processDefinition = deployProcessWithSeveralOutGoingTransitions ( ) ; processDefinitions . add ( processDefinition ) ; final org . bonitasoft . engine . bpm . process . ProcessInstance proce...
org . junit . Assert . assertEquals ( 0 , taskInstances . size ( ) )
graph_dft_1q ( ) { java . util . List < org . apache . jena . sparql . engine . binding . Binding > results = exec ( ( ( "(graph<sp><" + ( Quad . defaultGraphIRI . getURI ( ) ) ) + "><sp>(bgp<sp>(<s2><sp>?p<sp>?o)))" ) , org . apache . jena . sparql . core . TestSpecialGraphNames . Mode . QUADS ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( 0 , results . size ( ) )
testActionPostRequestXmlScore ( ) { java . lang . String uri = "http://some.com/xyz.svc/Customers(2)/ODataDemo.ODataDemoAction" ; odataUri = uriParser . parseUri ( uri , entityDataModel ) ; int score = unmarshaller . score ( createODataRequestContext ( createODataRequest ( com . sdl . odata . unmarshaller . atom . POST...
org . junit . Assert . assertThat ( score , org . hamcrest . CoreMatchers . is ( 0 ) )
testFloatStaxUnmarshaller ( ) { java . lang . Float data = new java . lang . Float ( 1000.0 ) ; com . amazonaws . transform . SimpleTypeStaxUnmarshallers . FloatStaxUnmarshaller unmarshaller = SimpleTypeStaxUnmarshallers . FloatStaxUnmarshaller . getInstance ( ) ; java . lang . Float unmarshalled = unmarshaller . unmar...
org . junit . Assert . assertEquals ( unmarshalled , new java . lang . Float ( 1000.0 ) )
testDownloadFile ( ) { java . lang . String fileName = ( "item." + ( org . opencb . opencga . core . common . TimeUtils . getTimeMillis ( ) ) ) + ".vcf" ; int fileSize = 200 ; byte [ ] bytesOrig = org . opencb . commons . utils . StringUtils . randomString ( fileSize ) . getBytes ( ) ; org . opencb . commons . datastor...
org . junit . Assert . assertTrue ( org . opencb . opencga . catalog . managers . Arrays . equals ( bytesOrig , bytes ) )
testAlignRtRowAttrs ( ) { org . batfish . question . routes . RouteRowAttribute rra1 = org . batfish . question . routes . RouteRowAttribute . builder ( ) . setNextHop ( "node1" ) . build ( ) ; org . batfish . question . routes . RouteRowAttribute rra3 = org . batfish . question . routes . RouteRowAttribute . builder (...
org . junit . Assert . assertThat ( alignedRouteRowattrs , org . hamcrest . Matchers . equalTo ( expectedOutput ) )
testPhraseSearchForStringField ( ) { java . lang . String query = "george<sp>lin<sp>lin" ; java . util . ArrayList < java . lang . String > attributeNames = new java . util . ArrayList ( ) ; attributeNames . add ( TestConstants . FIRST_NAME ) ; attributeNames . add ( TestConstants . LAST_NAME ) ; attributeNames . add (...
org . junit . Assert . assertTrue ( contains )
testFetchResponse ( ) { org . owasp . proxy . http . client . HttpClient client = new org . owasp . proxy . http . client . HttpClient ( ) ; client . connect ( "localhost" , 9999 , false ) ; java . lang . String request = "GET<sp>/blah/blah?abc=def<sp>HTTP/1.0\r\nHost:<sp>localhost\r\n\r\n" ; client . sendRequestHeader...
org . junit . Assert . assertEquals ( request . length ( ) , read )
testBoundsWithTranform ( ) { org . geotools . data . simple . SimpleFeatureSource transformed = transformWithExpressions ( ) ; "<AssertPlaceHolder>" ; } getBounds ( ) { return org . geotools . data . DataUtilities . bounds ( this ) ; }
org . junit . Assert . assertNull ( transformed . getBounds ( ) )
testAddGlobal_shouldAddGlobal ( ) { ruleManager . addGlobal ( "java.util.Random" , "bla" ) ; ruleManager . add ( new org . openengsb . core . workflow . api . model . RuleBaseElementId ( org . openengsb . core . workflow . api . model . RuleBaseElementType . Rule , "bla" ) , "when\n<sp>then<sp>example2.doSomethingWithM...
org . junit . Assert . assertTrue ( listener . haveRulesFired ( "bla" ) )
testGetNotificationToken ( ) { java . lang . String accessToken = oauthHelper . getClientCredentialsAccessToken ( client1ClientId , client1ClientSecret , ScopePathType . PREMIUM_NOTIFICATION ) ; "<AssertPlaceHolder>" ; } getClientCredentialsAccessToken ( java . lang . String , java . lang . String , org . orcid . jaxb ...
org . junit . Assert . assertNotNull ( accessToken )
testShowErrorAndRejectWithRejection ( ) { generalSettingsPresenter . showErrorAndReject ( "Test<sp>message" ) . then ( ( i ) -> { org . junit . Assert . fail ( "Promise<sp>should've<sp>not<sp>been<sp>resolved!" ) ; return promises . resolve ( ) ; } ) . catch_ ( ( e ) -> { verify ( view ) . showError ( eq ( "Test<sp>mes...
org . junit . Assert . assertEquals ( e , generalSettingsPresenter )
setVisibility ( ) { org . phenotips . data . Patient p = mock ( org . phenotips . data . Patient . class ) ; org . phenotips . data . permissions . internal . EntityAccessHelper h = mock ( org . phenotips . data . permissions . internal . EntityAccessHelper . class ) ; org . phenotips . data . permissions . internal . ...
org . junit . Assert . assertTrue ( pa . setVisibility ( v ) )
testCustomColors2 ( ) { final java . lang . String restPath = ( ( ( ( org . geoserver . rest . RestBaseController . ROOT_PATH ) + "/sldservice/cite:ClassificationPoints/" ) + ( getServiceUrl ( ) ) ) + ".xml?" ) + "attribute=foo&intervals=2&ramp=custom&colors=#FF0000,#00FF00,#0000FF" ; org . springframework . mock . web...
org . junit . Assert . assertTrue ( ( ( response . getStatus ( ) ) == 200 ) )
testFullResMetricVarianceForOneSample ( ) { variance . handleFullResMetric ( 3.14 ) ; "<AssertPlaceHolder>" ; } toDouble ( ) { return this . doubleValue ; }
org . junit . Assert . assertEquals ( 0.0 , variance . toDouble ( ) , 0 )
testCreateInstance ( ) { com . netsuite . webservices . test . lists . accounting . Account instance = org . talend . components . netsuite . client . model . TypeUtils . createInstance ( com . netsuite . webservices . test . lists . accounting . Account . class ) ; "<AssertPlaceHolder>" ; } createInstance ( java . lan...
org . junit . Assert . assertNotNull ( instance )
testParseCount ( ) { java . lang . String json = "{\"kind\":<sp>\"Listing\",<sp>\"data\":<sp>{\"modhash\":<sp>\"\",<sp>\"children\":<sp>[1,2,3],<sp>\"after\":<sp>null,<sp>\"before\":<sp>null}}" ; com . headissue . sharecount . provider . ShareCountProvider p = new com . headissue . sharecount . provider . Reddit ( ) ; ...
org . junit . Assert . assertEquals ( 3 , count )
getLinkTypeSLL ( ) { "<AssertPlaceHolder>" ; } getLinkType ( long ) { switch ( ( ( int ) ( linkTypeVal ) ) ) { case 0 : return net . ripe . hadoop . pcap . PcapReader . LinkType . NULL ; case 1 : return net . ripe . hadoop . pcap . PcapReader . LinkType . EN10MB ; case 101 : return net . ripe . hadoop . pcap . PcapRead...
org . junit . Assert . assertEquals ( PcapReader . LinkType . LINUX_SLL , reader . getLinkType ( 113 ) )
getUser ( ) { java . util . List < com . behase . relumin . model . LoginUser > users = com . google . common . collect . Lists . newArrayList ( new com . behase . relumin . model . LoginUser ( "username1" , "displayName1" , "rawPassword" , Role . VIEWER . getAuthority ( ) ) , new com . behase . relumin . model . Login...
org . junit . Assert . assertThat ( result . getUsername ( ) , org . hamcrest . core . Is . is ( "username2" ) )
testImpalaDistribution_MapR ( ) { org . talend . hadoop . distribution . model . DistributionBean distribution = HadoopDistributionsHelper . IMPALA . getDistribution ( IMapRDistribution . DISTRIBUTION_NAME , false ) ; "<AssertPlaceHolder>" ; java . lang . String [ ] versionsDisplay = distribution . getVersionsDisplay (...
org . junit . Assert . assertNotNull ( distribution )
testNot1 ( ) { org . nd4j . linalg . api . ndarray . INDArray x = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , 0 , 1 , 0 , 0 } ) ; org . nd4j . linalg . api . ndarray . INDArray exp = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1 , 1 , 0 , 1 , 1 } ) ; org . nd4j . linalg . a...
org . junit . Assert . assertEquals ( exp , z )
testGetComplexProvider2 ( ) { org . apache . cxf . jaxrs . provider . ServerProviderFactory pf = org . apache . cxf . jaxrs . provider . ServerProviderFactory . getInstance ( ) ; pf . registerUserProvider ( new org . apache . cxf . jaxrs . provider . ProviderFactoryTest . ComplexMessageBodyReader ( ) ) ; javax . ws . r...
org . junit . Assert . assertTrue ( ( ( org . apache . cxf . jaxrs . provider . ProviderFactoryTest . ComplexMessageBodyReader . class ) == ( reader . getClass ( ) ) ) )
selectCellPointCoordinateOutsideGridBounds ( ) { cellSelectionManager . selectCell ( new com . ait . lienzo . client . core . types . Point2D ( ( - 10 ) , ( - 10 ) ) , false , false ) ; final java . util . List < org . uberfire . ext . wires . core . grids . client . model . GridData . SelectedCell > selectedCells = gr...
org . junit . Assert . assertTrue ( selectedCells . isEmpty ( ) )
addAsContactPersonsToCampaign_NullDefaultAddressType_NonExistingBill_NotMandatoryLocation ( ) { final de . metas . interfaces . I_C_BPartner partner1 = createBPartner ( "Partner1" ) ; createBPartnerLocation ( partner1 ) ; final de . metas . bpartner . BPartnerId bpartnerId = de . metas . bpartner . BPartnerId . ofRepoI...
org . junit . Assert . assertTrue ( ( ( existingContactPersons . size ( ) ) == 1 ) )
test_whitelabel_ips__id__get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ; re...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
createClaimId ( ) { java . lang . String claimId = gov . uspto . patent . ReferenceTagger . createClaimId ( "claim<sp>1" ) ; java . lang . String expect = "CLM-0001" ; "<AssertPlaceHolder>" ; } createClaimId ( java . lang . String ) { java . util . regex . Matcher clmMatcher = gov . uspto . patent . ReferenceTagger . C...
org . junit . Assert . assertEquals ( expect , claimId )
testShow ( ) { opennlp . tools . parser . Parse p1 = opennlp . tools . parser . Parse . parseParse ( opennlp . tools . parser . ParseTest . PARSE_STRING ) ; java . lang . StringBuffer parseString = new java . lang . StringBuffer ( ) ; p1 . show ( parseString ) ; opennlp . tools . parser . Parse p2 = opennlp . tools . p...
org . junit . Assert . assertEquals ( p1 , p2 )
testNonExistentField ( ) { final java . lang . Object [ ] objArray = new java . lang . Object [ 1 ] ; final org . drools . core . util . asm . TestBean obj = new org . drools . core . util . asm . TestBean ( ) ; obj . setBlah ( false ) ; obj . setSomething ( "no" ) ; obj . setObjArray ( objArray ) ; org . drools . core...
org . junit . Assert . assertNull ( ext )
testClaimsSubclass ( ) { com . vmware . xenon . common . jwt . TestEndToEnd . CustomClaims in = new com . vmware . xenon . common . jwt . TestEndToEnd . CustomClaims ( ) ; in . customProperty = "hello<sp>world" ; java . lang . String jwt = this . signer . sign ( in ) ; com . vmware . xenon . common . jwt . TestEndToEnd...
org . junit . Assert . assertEquals ( in . customProperty , out . customProperty )
getFirstChildElement_no_children ( ) { org . w3c . dom . Document document = ezvcard . util . XmlUtils . toDocument ( xml ) ; org . w3c . dom . Element root = ( ( org . w3c . dom . Element ) ( document . getFirstChild ( ) ) ) ; org . w3c . dom . Element child1 = ezvcard . util . XmlUtils . getFirstChildElement ( root )...
org . junit . Assert . assertNull ( ezvcard . util . XmlUtils . getFirstChildElement ( child1 ) )
testMultipleErrors ( ) { java . util . Set < javax . validation . ConstraintViolation < com . cloudera . csd . descriptors . ServiceDescriptor > > violations = violations ( "service_multipleErrors.sdl" ) ; "<AssertPlaceHolder>" ; } violations ( java . lang . String ) { return validator . getViolations ( com . cloudera ...
org . junit . Assert . assertEquals ( 2 , violations . size ( ) )
stopSession_sessionIsPaused_stateChangedToInactive ( ) { target . startSession ( ) ; target . pauseSession ( ) ; target . stopSession ( ) ; "<AssertPlaceHolder>" ; } getSessionState ( ) { if ( ( this . session ) != null ) { return this . session . isPaused ( ) ? com . amazonaws . mobileconnectors . amazonmobileanalytic...
org . junit . Assert . assertEquals ( target . getSessionState ( ) , DefaultSessionClient . SessionState . INACTIVE )
testGetIsArray ( ) { com . eclipsesource . v8 . V8Array array = v8 . executeArrayScript ( "foo<sp>=<sp>[[]]" ) ; java . lang . Object result = array . get ( 0 ) ; "<AssertPlaceHolder>" ; array . close ( ) ; ( ( com . eclipsesource . v8 . Releasable ) ( result ) ) . release ( ) ; } get ( byte [ ] ) { v8 . checkThread ( ...
org . junit . Assert . assertTrue ( ( result instanceof com . eclipsesource . v8 . V8Array ) )
shouldAddToCache ( ) { cache . put ( "key" , 1 ) ; "<AssertPlaceHolder>" ; } size ( ) { return cache . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , cache . size ( ) )
testFileEntryDeleteShouldIgnoreErorsIfFileDoesNotExist ( ) { com . liferay . portal . kernel . repository . model . FileEntry fileEntry = _addPortletFileEntry ( com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) ) ; com . liferay . portal . kernel . portletfilerepository . PortletFileRepo...
org . junit . Assert . assertEquals ( 0 , count )
testConstructor ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( field )
testSize ( ) { org . pb . x12 . Segment s = new org . pb . x12 . Segment ( new org . pb . x12 . Context ( '~' , '*' , ':' ) ) ; s . addElements ( "ISA" , "ISA01" , "ISA02" , "ISA03" , "ISA04" ) ; "<AssertPlaceHolder>" ; } size ( ) { int size = 0 ; size = this . segments . size ( ) ; for ( org . pb . x12 . Loop l : this...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 5 ) , new java . lang . Integer ( s . size ( ) ) )
testValidKubernetesResources ( ) { java . net . URL fileUrl = io . fabric8 . maven . core . util . ResourceValidatorTest . class . getResource ( "/validations/kubernetes-deploy.yml" ) ; io . fabric8 . maven . core . util . validator . ResourceValidator resourceValidator = new io . fabric8 . maven . core . util . valida...
org . junit . Assert . assertEquals ( 1 , validResources )
testGetRemotePartitionFilePaths ( ) { com . liveramp . hank . storage . curly . CurlyUpdatePlanner updatePlanner = new com . liveramp . hank . storage . curly . CurlyUpdatePlanner ( domain ) ; java . util . List < java . lang . String > paths = updatePlanner . getRemotePartitionFilePaths ( new com . liveramp . hank . s...
org . junit . Assert . assertEquals ( expectedPaths , paths )
testHasNextBeforeOpenFails ( ) { org . apache . hyracks . storage . common . IIndexAccessor accessor = createAccessor ( ) ; org . apache . hyracks . storage . common . IIndexCursor cursor = createCursor ( accessor ) ; boolean expectedExceptionThrown = false ; try { cursor . hasNext ( ) ; } catch ( java . lang . Excepti...
org . junit . Assert . assertTrue ( expectedExceptionThrown )
testDontWrapSerializedRelayAgain ( ) { com . jakewharton . rxrelay2 . PublishRelay < java . lang . Object > s = com . jakewharton . rxrelay2 . PublishRelay . create ( ) ; com . jakewharton . rxrelay2 . Relay < java . lang . Object > s1 = s . toSerialized ( ) ; com . jakewharton . rxrelay2 . Relay < java . lang . Object...
org . junit . Assert . assertSame ( s1 , s2 )
testDOMWS ( ) { itest . common . intf . ClientIntf client = itest . CrossContribTestCase . node . getService ( itest . common . intf . ClientIntf . class , "ClientWS" ) ; "<AssertPlaceHolder>" ; client . callDOM ( ) ; } getService ( java . lang . Class , java . lang . String ) { try { return ( ( B ) ( node . getClass (...
org . junit . Assert . assertNotNull ( client )
shouldMarkUnusedSteps ( ) { final java . util . UUID stepMarker = java . util . UUID . randomUUID ( ) ; final org . talend . dataprep . maintenance . preparation . StepMarker marker = new org . talend . dataprep . maintenance . preparation . PreparationStepMarker ( ) ; final org . talend . dataprep . preparation . stor...
org . junit . Assert . assertEquals ( StepMarker . Result . COMPLETED , result )
shouldConvertStringToId ( ) { org . openkilda . model . PathId pathId = new org . openkilda . model . PathId ( "test_path_id" ) ; org . openkilda . model . PathId actualEntity = new org . openkilda . persistence . converters . PathIdConverter ( ) . toEntityAttribute ( pathId . getId ( ) ) ; "<AssertPlaceHolder>" ; } ge...
org . junit . Assert . assertEquals ( pathId , actualEntity )
testActionInstantiationWhichFailsDueToFailedDependencies ( ) { com . picocontainer . web . webwork . TestAction action = ( ( com . picocontainer . web . webwork . TestAction ) ( factory . getActionImpl ( com . picocontainer . web . webwork . TestAction . class . getName ( ) ) ) ) ; "<AssertPlaceHolder>" ; } getName ( )...
org . junit . Assert . assertNull ( action )
testNotImplementedExceptionResourcesStringStringArray ( ) { org . support . project . common . exception . NotImplementedException exception = new org . support . project . common . exception . NotImplementedException ( org . support . project . common . config . Resources . getInstance ( java . util . Locale . getDefa...
org . junit . Assert . assertEquals ( resources . getResource ( "errors.integer" , "AAA" ) , exception . getMessage ( ) )
testEvictChangedLease ( ) { software . amazon . kinesis . leases . dynamodb . TestHarnessBuilder builder = new software . amazon . kinesis . leases . dynamodb . TestHarnessBuilder ( leaseRefresher ) ; software . amazon . kinesis . leases . Lease lease = builder . withLease ( "1" ) . build ( ) . get ( "1" ) ; lease . le...
org . junit . Assert . assertFalse ( leaseRefresher . evictLease ( lease ) )
testLoadExistingJsonFile ( ) { org . apache . hadoop . hdfs . protocol . DatanodeAdminProperties [ ] all = org . apache . hadoop . hdfs . util . CombinedHostsFileReader . readFile ( jsonFile . getAbsolutePath ( ) ) ; "<AssertPlaceHolder>" ; } getAbsolutePath ( ) { final java . lang . String path = getValue ( ) ; return...
org . junit . Assert . assertEquals ( 7 , all . length )
shouldReturnTrueIfClientHasMobile ( ) { client . addPhone ( com . practicalunittesting . chp05 . mockornot . NotMockingPhone2Test . MOBILE_PHONE ) ; client . addPhone ( com . practicalunittesting . chp05 . mockornot . NotMockingPhone2Test . STATIONARY_PHONE ) ; "<AssertPlaceHolder>" ; } hasMobile ( ) { for ( com . prac...
org . junit . Assert . assertTrue ( client . hasMobile ( ) )
testCompileValidEncoding ( ) { org . eclipse . ceylon . common . tool . ToolModel < org . eclipse . ceylon . compiler . CeylonCompileTool > model = pluginLoader . loadToolModel ( "compile" ) ; "<AssertPlaceHolder>" ; org . eclipse . ceylon . compiler . CeylonCompileTool tool = pluginFactory . bindArguments ( model , ge...
org . junit . Assert . assertNotNull ( model )
shouldDoGetLastElementWithWindowSize ( ) { int addedElementsNumber = 10 ; int windowSize = 3 ; com . orange . dgil . trail . core . common . TrailPoint [ ] points = new com . orange . dgil . trail . core . common . TrailPoint [ windowSize ] ; com . orange . dgil . trail . TestTools . setObj ( "addedElementsNumber" , co...
org . junit . Assert . assertEquals ( 2 , ret )
rejectKeysMultiValues ( ) { org . eclipse . collections . api . multimap . Multimap < java . lang . String , java . lang . Integer > multimap = this . newMultimapWithKeysValues ( "One" , 1 , "One" , 12 , "Two" , 2 , "Two" , 3 ) ; org . eclipse . collections . api . multimap . Multimap < java . lang . String , java . la...
org . junit . Assert . assertEquals ( this . newMultimapWithKeysValues ( "One" , 1 , "One" , 12 ) , rejectedMultimap )
testCopyFormatAttributesWithCpuAsString ( ) { org . sonatype . nexus . repository . npm . internal . NpmFormatAttributesExtractor underTest = new org . sonatype . nexus . repository . npm . internal . NpmFormatAttributesExtractor ( new ImmutableMap . Builder < java . lang . String , java . lang . Object > ( ) . put ( "...
org . junit . Assert . assertThat ( asset . formatAttributes ( ) . get ( "cpu" ) , org . hamcrest . Matchers . is ( "x64" ) )
customerAccountIsCreatedWithCustomerSchedulesWhenAssociatedCustomerIsActive ( ) { applicableCalendarEvents = new org . mifos . domain . builders . CalendarEventBuilder ( ) . build ( ) ; customerMeeting = new org . mifos . domain . builders . MeetingBuilder ( ) . customerMeeting ( ) . weekly ( ) . every ( 1 ) . build ( ...
org . junit . Assert . assertThat ( customerAccount . getAccountActionDates ( ) . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( false ) )